Commit 3c56189
authored
lib,tests: drop inspectTree and the discoverTree duplicate fixture (indexable-inc#245)
## Summary
inspectTree was only ever a test seam so the helpers group could grep
the exact discoverTree duplicate-name failure text without catching a
throw. The pinned message-format assertion is brittle, the helper has
no production caller, and a full tests/ refactor is queued.
Inline the walk + duplicate detection back into discoverTree, drop the
helper exports, and remove the duplicates fixture along with the three
substring assertions. discoverTree's behavior is identical for every
existing caller (image, module, example discovery still throws the
same way on real duplicates).
## Tradeoff
Nothing now asserts the duplicate throw fires until the tests/ refactor
lands. Risk is low: any real regression in discoverTree's duplicate
guard would surface as a build failure in image/module/example
discovery callers.
## Validation
- \`nix run .#lint\`
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent 4a8947a commit 3c56189
5 files changed
Lines changed: 8 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
347 | 346 | | |
348 | 347 | | |
349 | 348 | | |
| |||
363 | 362 | | |
364 | 363 | | |
365 | 364 | | |
366 | | - | |
367 | 365 | | |
368 | 366 | | |
369 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
32 | 31 | | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 89 | + | |
| 90 | + | |
107 | 91 | | |
108 | 92 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 93 | + | |
112 | 94 | | |
113 | 95 | | |
114 | 96 | | |
| |||
303 | 285 | | |
304 | 286 | | |
305 | 287 | | |
306 | | - | |
307 | 288 | | |
308 | 289 | | |
309 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1729 | 1729 | | |
1730 | 1730 | | |
1731 | 1731 | | |
1732 | | - | |
1733 | | - | |
1734 | 1732 | | |
1735 | 1733 | | |
1736 | 1734 | | |
| |||
2930 | 2928 | | |
2931 | 2929 | | |
2932 | 2930 | | |
2933 | | - | |
2934 | | - | |
2935 | | - | |
2936 | | - | |
2937 | | - | |
2938 | | - | |
2939 | | - | |
2940 | | - | |
2941 | | - | |
2942 | | - | |
2943 | | - | |
2944 | | - | |
2945 | | - | |
2946 | | - | |
2947 | 2931 | | |
2948 | 2932 | | |
2949 | 2933 | | |
| |||
Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
This file was deleted.
0 commit comments