4.3.1 Statement Testing and Statement Coverage Flashcards
In statement testing, the coverage items are e…
Aim is to design … that exercise s… until an acceptable level of c…
executable statements.
test cases
statements in the code
coverage is achieved.
Statement testing coverage is measured as number of statements exercised by t… / total number of e…
Expressed as a “ “
test cases
executable statements in the code
%
When 100% statement coverage is achieved, it ensures that all e… have been exercised at least “ “.
executable statements in the code
once
In particular, each statement with a defect will be executed which may cause a “ “ demonstrating the presence of a “ “.
failure
defect
However, exercising a statement with a test case will not detect d…
Ex: it may not detect defects that are … (e.g. a division by “ “ that only fails when a d…
defects in all cases.
data dependent
zero
denominator is set to zero).
100% statement coverage does not ensure that all the d… has been tested, as it may not exercise all the b…
decision logic
branches in the code.