Contains coverage information for a declaration. Depending on the reporter and language, this may be types such as functions, methods, or namespaces.

Implemented by

Constructors

Properties

Constructors

  • Parameters

    • name: string
    • executed: number | boolean

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

    • location: Position | Range

      The declaration position.

    Returns DeclarationCoverage

Properties

executed: number | boolean

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

location: Position | Range

Declaration location.

name: string

Name of the declaration.