Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Record

Coverage Record Data

A structured object to hold coverage counts for any piece of data (e.g. Branches, Functions, Lines) that also supports combining data and cloning data.

Hierarchy

Implements

Index

Constructors

Accessors

Methods

Constructors

constructor

  • new Record(total: number, hit: number, miss?: undefined | number): Record
  • Construct a Record with the given data

    Parameters

    • total: number

      the total count

    • hit: number

      the hit count

    • Optional miss: undefined | number

      the miss count (optional: will be calculated from total and hit if not provided)

    Returns Record

Accessors

hit

  • get hit(): number

miss

  • get miss(): number

total

  • get total(): number

Methods

clone

combine

Generated using TypeDoc