Professional Documents
Culture Documents
A,B,C boolean
if (A and B) then
return X+Y
else if (C) then
return Y
else
return X
fsi
Find minimum set of value to have statement coverage, then to have branch
coverage.
Conclusion :
Which coverage is better?
When you use partition analysis which coverage do you reach?
If you are doing TDD which coverage can you reach?
Exercice 3: Make a MCDC analysis on followings:
1.
If (A or B)
Then call f1
Else
Call f2
Endif
If (A and B)
Then call f1
Else
Call f2
Endif
code coverage: