I have found the following questions regarding statement coverage.
Minimum Test Required for Statement Coverage:
Disc = 0
Order-qty = 0
Read Order-qty
If Order-qty >=20 then
Disc = 0.05
If Order-qty >=100 then
Disc =0.1
End if
End if
In my opinion, we need 2 statement coverage. But the correct answer is 1 statement based on many websites.
I don’t understand why only one statement coverage is needed.
Source: Read More