OhMyBug

tests/ci

Only Some Listed Cases Tested

#39uncommon96 sightingsfirst seen August 2026

What goes wrong

A rule lists several distinct cases — switch branches, allowed codes, an exception chain, the default fallback — but the tests drive only some of them, so an untested case can be deleted, narrowed or sent to the default and the suite stays green.

Example

A switch maps five order statuses to labels; tests cover two, the 'refunded' branch is deleted, and every refunded order silently shows the default label.

Not to be confused with

The categorical cousin of Unchallenged Boundary Assertion, where the subject is a numeric limit; unlike Unreached Branch Test no test even claims the missing case, and unlike Sibling Without Family Test the cases are branches of one rule, not parallel code sites.

Discovered by

Field notes · 31