Question: i . Draw the control flow graph of the code. ii . List down the possible test paths in order to achieve 1 0 0
i Draw the control flow graph of the code.
ii List down the possible test paths in order to achieve test coverage for
statement coverage. test path should be written using this format: SnCn
iii. List down the possible test paths in order to achieve test coverage for
decision coverage. test path should be written using this format: SnCn
iv List down the possible test paths in order to achieve test coverage for branch
coverage. test path should be written using this format: SnCn
v Calculate Cyclomatic Complexity value for path coverage. You may use any of
cyclomatic metric formula.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
