OhMyBug

tests/ci

Check passes over an empty set

rare10 sightingsfirst seen September 2026

What goes wrong

A check loops over the items it is meant to judge, and the set it collects is empty, so no comparison ever runs and the check reports success. The reader takes the green result as evidence that the rule held, when it only means the rule was never applied to anything.

Example

A rule walks every entry in a folder and complains about bad ones; a cleanup step moved the entries elsewhere, so the rule now walks nothing and reports that everything is fine.

Not to be confused with

Not Fixture never creates the triggering condition, where a case exists but misses the branch, and not Test Data Too Small To Tell, where data is present but too thin; here there is nothing to judge at all.

Discovered by

Field notes · 8