Data Flow Criteria Flashcards

1
Q

Another testing perspective we can take is focusing on the way that _____ moves or flows

A

data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In data flow testing, we test all the ways that a _____ may flow to it’s ______

A

Def (definition), uses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a def-use pair?

A

The definition of some variable (x=…) and the eventual use (f(x))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In def-use testing, we may be interested in the ____ used to get to the use case of the def

A

path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When finding def-use pairs, be wary of _________

A

reassignments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are some possible testing criteria?

A

All defs coverage
All uses coverage
All def-use pairs coverage
All def-use paths coverage (many many tests)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do the def-use testing criteria compare to edge coverage?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Where else might we see graphs when thinking about program design?

A

Call graphs
Inheritance
FSMs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When should you use def-use testing?

A

If you have a context where this type of flow matters (OO programs with inheritance)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly