Question: 1 6 . Please prepare test cases for statement coverage, branch coverage and path coverage. Public class ExampleClass { public int returnInput ( int x

16.Please prepare test cases for statement coverage, branch coverage and path coverage.
Public class ExampleClass {
public int returnInput (int x, boolean a, boolean b, boolean c){
int y=0;
int z=0;
if (a)
y=x;
else
System.out.println("The condition a is false" );
x++;
10 if (b&c)
11.y=x**10;
12. else
13.y=x+10;
14.z=x+y;
15. return x+y+z;
16.}
17.
1 6 . Please prepare test cases for statement

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!