* test: strengthen type extractor boundary coverage * test: consolidate element type boundary and recall coverage Consolidates #4149, #4144, #4145. Co-authored-by: azizur100389 <180941991+azizur100389@users.noreply.github.com> Co-authored-by: DevChiniwala <147787840+DevChiniwala@users.noreply.github.com> * docs(test): explain the retired extractor fixtures Carry the distinct coverage from #4201 into #4149. Co-authored-by: DevChiniwala <147787840+DevChiniwala@users.noreply.github.com> --------- Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com> Co-authored-by: azizur100389 <180941991+azizur100389@users.noreply.github.com> Co-authored-by: DevChiniwala <147787840+DevChiniwala@users.noreply.github.com> Co-authored-by: Abhigyan Patwari <126312502+abhigyanpatwari@users.noreply.github.com> Co-authored-by: Gergő Magyar <gergomagyar@icloud.com> |
||
|---|---|---|
| .. | ||
| audit.json | ||
| README.md | ||
| retired-element-type.ts | ||
| retired-type-env.ts | ||
Recall audit sources
audit.json records manually reviewed positive pairs and distinct scenarios from
PR #3686. The runtime detector still decides whether retrieved candidates are duplicates.
retired-type-env.ts preserves 12 pure stripNullable callbacks removed from
test/unit/type-env.test.ts after the full detector run on PR #3743 confirmed their
duplicates in test/unit/shared-type-extractors.test.ts. The callbacks and suite titles
were copied from commit bd9586e008c6a2dbcd2f15598a3a20c3f2f44f03; only the import's
relative path changed. These cases have no hooks or mocks.
retired-element-type.ts preserves 16 original extractElementTypeFromString
callbacks from test/unit/shared-type-extractors.test.ts. The active cases now
live in test/unit/extract-element-type-from-string.test.ts, including the
2,048- and 2,049-character boundary cases.
The .ts suffix keeps both fixtures outside Vitest's *.test.ts discovery.
The recall audit reads the fixtures referenced by audit.json, so it can
check the original pairs without running retired callbacks as unit tests.
The seven other stripNullable cases remain in type-env.test.ts.