
Test-Adequacy Assessment Using Control Flow
Example 6.43: Let us compute the adquacy of test T given below
against the elementary data context coverage criteria.
T =
⎧
⎪
⎪
⎨
⎪
⎪
⎩
t
1
: < Y =−2, Z = 2, DPVOU = 1 >
t
2
: < Y =−2, Z =−2, DPVOU = 1 >
t
3
: < Y = 2, Z = 2, DPVOU = 1 >
t
4
: < Y = 2, Z = 2, DPVOU = 2 >
⎫
⎪
⎪
⎬
⎪
⎪
⎭
We assume that Program P6.16 is executed against the four test cases
listed above. For each test case, the table below shows the path tra-
versed, the elementary data context(s) covered, and the cumulative
elementary data context (EDC) coverage. An asterisk against a node
indicates that the corresponding elementary data context has already
been covered ...