Question 17 K4. One of the test goals for your project is to have 100% decision cover.. 213
One of the test goals for your project is to have 100% decision coverage. The following three tests have been executed for the control flow graph shown below.
Test A covers path: A, B, D, E, G
Test B covers path: A, B, D, E, F, G
Test C covers path: A, C, F, C, F, C, F, G
Which of the following statements related to the decision coverage goal is TRUE?
|A||Decision D has not been tested completely.|
|B||100% decision coverage has been achieved.|
|C||Decision E has not been tested completely.|
|D||Decision F has not been tested completely.|
In the diagram there are following four conditions: A, D, E. F
The test A covers A->B, D->E and E->G
The test B covers A->B, D->E, E->F and F->G
The test C covers A->C, F->C and F->G.
Hence condition A is covered (A->B and A->C), condition E is covered (E->G and E->F), condition F is covered (F->C and F->G). Condition D is not covered, there is only D->E and D->F is not covered.