You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: guard loops that would assert nothing over an empty collection (#3)
Completes the vacuity pass. 24 tests looped over a computed collection with no
check that it contained anything, so each would have reported success against
an implementation that returned nothing at all. Mutation-verified: emptying the
language registry now fails 17 of them, and suppressing orphan detection fails
two more. Both previously passed.
The remaining seven loop over locally-defined literals of four to six elements,
which cannot be empty by accident, and are left alone -- a guard there would be
noise rather than protection.
Also restores a test that had quietly shrunk.
`test_no_analyzer_declares_an_option_it_ignores` documents itself as checking
"across all analyzers at once" and was iterating a hardcoded one-element list,
so it verified a tenth of what it claimed while still passing. It reads the
registry again, asserts the registry is fully populated, and now fails when a
dead option is added to any analyzer.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments