COMP 325 Lecture 14: Selected Implementation Issues
major resources: Object-Oriented and Classical Software Engineering 6ed,
Schach 2005, Object-Oriented Software Engineering, Schach 2008.
if (x > 0) then B1; else B2; if (y > 0) then B3; else B4; | 2 test cases, (x=0, y=0) and (x=1, y=1), provide statement coverage of B1, B2, B3 and B4. 4 test cases, (x=0, y=0), (x=0, y=1), (x=1, y=0), (x=1, y=1), are required for path coverage (corresponding paths are B2-B4, B2-B3, B1-B4, B1-B3) |