Contains coverage information for a branch of a {@link StatementCoverage}.

Constructor

new(executed:EitherType<Int, Bool>, ?location:EitherType<Position, Range>, ?label:String)

Parameters:

executed

The number of times this branch was executed, or a boolean indicating whether it was executed if the exact count is unknown. If zero or false, the branch will be marked as un-covered.

location

The branch position.

Variables

executed:EitherType<Int, Bool>

The number of times this branch was executed, or a boolean indicating whether it was executed if the exact count is unknown. If zero or false, the branch will be marked as un-covered.

label:Null<String>

Label for the branch, used in the context of "the ${label} branch was not taken," for example.

location:Null<EitherType<Position, Range>>

Branch location.