Contains coverage information for a branch of a StatementCoverage.

Implemented by

Constructors

Properties

Constructors

  • Parameters

    • executed: number | boolean

      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.

    • Optional location: Position | Range

      The branch position.

    • Optional label: string

    Returns BranchCoverage

Properties

executed: number | boolean

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?: string

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

location?: Position | Range

Branch location.