predicatecoverage
Predicate coverage is a software testing coverage criterion focused on the boolean sub-expressions within conditional statements. It requires that each atomic predicate—the individual boolean sub-expression—takes on both the true and false values across the test suite. The goal is to detect faults that arise when a particular sub-expression behaves differently than expected, independent of the overall decision outcome.
In practice, predicate coverage examines expressions in conditions such as if (A && B) or while (X ||
Predicate coverage sits between other criteria in the family of test coverage measures. It is more focused
Limitations include its inability to guarantee all meaningful interactions among predicates, especially in complex expressions with