Part 2: W06-2 Structural Testing Flashcards
1
Q
What is a Control Flow Graph?
A
A directed labeled graph representing the flow of a program.
Each node is a statement or group of statements.
2
Q
What coverage types exist for Structural testing?
A
- Statement coverage - each statement is executed
- Edge/condition coverage - each condition is tried
- Path coverage - each combination of conditions is tried
3
Q
What is a DD-Path Graph?
A
Basically Control Flow Graph simplified. (Long chains squashed to a single node)
4
Q
Apart from standard statement, edge/condition, and path coverage, what other coverage types can exist?
A
- Decision coverage - similar to condition coverage
- Function coverage
- Call coverage