Professional Documents
Culture Documents
Most of the errors relate to NOT satisfying the definitions associated with each coverage criteria.
For example—in the case of all-defs, if there are 10 defs associated with the variables, then there will be 10 paths
listed and subsequent processing may eliminate some which has been subsumed or infeasible. Once the set of paths
has been finalised, then list the test cases associated with the final set of paths. (at least expected input and expected
output)
All-Defs Coverage
Test cases include a definition-clear path from every definition to some corresponding use (c-use or p-use).
low 136 1, 2, 3, 4, 5, 6(T), 7, 8(F), 10(F), 12, 13, 14, 6(T), 7, 8(T), 9, 14, 6(F),
15,16
high 116 1, 2, 3, 4, 5, 6(T), 7, 8(F), 10(T), 11, 14, 6(T), 7, 8(T), 9, 14, 6(F), 15,16
All-Uses Coverage
Test cases include a definition-clear path from every definition to each of its uses including both c-uses and p-
uses.
If you count up the number of c-use and p-use – there are 22, therefore you need to list the 22 paths first.
All-DU-Paths Coverage
Test cases include all du-paths for each definition. Therefore, if there are multiple paths between a given
definition and a use, they must all be included.