Interface FileCoverage

Istanbul-compatible file coverage

interface FileCoverage {
    b: Record<string, number[]>;
    branchMap: Record<string, BranchMapping>;
    data: FileCoverageData;
    f: Record<string, number>;
    fnMap: Record<string, FunctionMapping>;
    path: string;
    s: Record<string, number>;
    statementMap: Record<string, Range>;
    computeBranchTotals(): Totals;
    computeSimpleTotals(): Totals;
    getBranchCoverageByLine(): Record<number, Coverage>;
    getLineCoverage(): Record<number, number>;
    getUncoveredLines(): number[];
    merge(other: FileCoverageData): void;
    resetHits(): void;
    toJSON(): any;
    toSummary(): CoverageSummary;
}

Hierarchy (view full)

Properties

b: Record<string, number[]>
branchMap: Record<string, BranchMapping>
f: Record<string, number>
fnMap: Record<string, FunctionMapping>
path: string
s: Record<string, number>
statementMap: Record<string, Range>

Methods

  • Returns Record<number, number>