Which methods are to be considered in method coverage

427 Views Asked by At

I have a confusion regarding the method coverage calculation. consider the code below.

function A (n1)
{
if (n>1)
    C();
else
    print n1;
} 

Now, My test case calls A() as A(1) It means function A will not call function C. Now, is method coverage 50% or 100%?

0

There are 0 best solutions below