Data Flow Criteria Flashcards
Another testing perspective we can take is focusing on the way that _____ moves or flows
data
In data flow testing, we test all the ways that a _____ may flow to it’s ______
Def (definition), uses
What is a def-use pair?
The definition of some variable (x=…) and the eventual use (f(x))
In def-use testing, we may be interested in the ____ used to get to the use case of the def
path
When finding def-use pairs, be wary of _________
reassignments
What are some possible testing criteria?
All defs coverage
All uses coverage
All def-use pairs coverage
All def-use paths coverage (many many tests)
How do the def-use testing criteria compare to edge coverage?
Sometimes dont even have to test as much as edge coverage
Sometimes might cover more if you’re looking a how different definitions flow to different uses
Where else might we see graphs when thinking about program design?
Call graphs
Inheritance
FSMs
When should you use def-use testing?
If you have a context where this type of flow matters (OO programs with inheritance)