Commit fa10b37
committed
test: add real SEC EDGAR 8-K filings and comprehensive tests
- Download 15 real 8-K filings from Apple, Microsoft, Amazon, Tesla,
Meta, and Alphabet covering diverse item types (1.01, 2.02, 5.02,
5.03, 5.07, 7.01, 8.01, 9.01)
- Replace synthetic XML mock data with real SEC EDGAR HTML/XHTML filings
- Fix parser detection: use regex for edgarSubmission root element
instead of <?xml prefix (XHTML inline XBRL files also start with <?xml)
- Add 31 comprehensive tests: parsing all files, storage with filing
metadata, item type coverage, cross-entity querying, amendment
handling, edge cases (null/empty items, semicolons, deduplication,
unknown items), XML signature processing, Form_8_K_ITEMS validation
- Total: 470 tests pass across 45 files
https://claude.ai/code/session_01SKG4qTyjPAtmuSipiEiAio1 parent 1c658cd commit fa10b37
21 files changed
Lines changed: 6654 additions & 251 deletions
File tree
- src/sec/forms/miscellaneous-filings
- mock_data/form-8k
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
28 | 25 | | |
29 | | - | |
| 26 | + | |
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
34 | 31 | | |
35 | | - | |
| 32 | + | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
Lines changed: 8 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 807 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 508 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 789 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 634 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1320 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 782 additions & 0 deletions
Large diffs are not rendered by default.
0 commit comments