What it does
A guard that looks like the reason a case passes, and changes nothing if deleted.
How it helps you
Code that looks like a safeguard has to do something, or it gets flagged.
Tested against itself
3 deliberate breaks, all caught
We change this check on purpose and watch its test fail. Each dot is one of those changes.
Details
| Category | Code quality |
|---|---|
| Also filed under | Test quality |
| Checks in this category | 216 |
| ISO/IEC 25010 | Maintainability: modifiability |
| Breaks caught | 3 |