Modified condition/decision coverage: Difference between revisions

Content deleted Content added
Oops
Line 16:
 
==Definitions==
;Condition: A condition is a leaf-level [[Boolean algebra (logic)|Boolean]] [[Expression (programming)|expression]] (it cannot be broken down into simpler Boolean expressions).
;Decision: A Boolean expression composed of conditions and zero or more [[Boolean operator (computer programming)|Boolean operator]]s. A decision without a Boolean operator is a condition. A decision does not imply a change of control flow, e.g. an assignment of a boolean expression to a variable is a decision for MC/DC.
;Condition coverage: Every condition in a decision in the program has taken all possible outcomes at least once.
;Decision coverage: Every point of entry and exit in the program has been invoked at least once, and every decision in the program has taken all possible outcomes at least once.