The following statement refers to decision coverage: “When the code contains only a single ‘if’ statement and no loops or CASE statements, and its execution is not nested within the test, any single test case we run will result in 50% decision coverage.” Which of the following statement is correct?
Answer Options
Correct Answer
B: The statement is true. Any single test case would cause the outcome of the “if” statement to be either true or false.