C5 Flashcards
(11 cards)
simple paths
no node appears more than once, except possibly the first and last => no internal loops
prime path
A simple path that does not appear as a proper subpath of any other simple path
tour
a test path p tours a path q if q is a subpath of p
tour with sidetrips
A test path p tours subpath q with sidetrips iff every edge in q is also in p in the same order => can include a sidetrip if it comes back to the same node
tour with detours
A test path p tours subpath q with detours iff every edge in q is also in p in the same order => can include a detour from node n, if it comes back to the prime path at a successor of n
best effort touring
- satisfy as many test requirements as possible without sidetrips
- allow sidetrips to try and satisfy unsatisfied test requirements
DU pair
a pair of locations (l_i, l_j) such that a variable v is defined at l_i and used at l_j
NB: def before use in a loop does not count as DU pair
Def-clear
a path from l_i to l_j is def-clear with respect to variable v if v is not used along the path except l_i, that is v is not given another value on any of the other nodes or edges in the path
reach
if there is a def-clear path from l_i to l_j with respect to v, the def of v at l_i reaches the use at l_j
du-path
a simple path that is def-clear with respect to v from a def of v to a use of v
data flow test criteria
- we make sure every def reaches a use => all-defs coverage (ADC)
- make sure every def reaches all possible uses => all-uses coverage (AUC)
- cover all the paths between defs and uses => all-du-paths coverage (ADUPC)