interface FileRow
Private

One report row: a source file's coverage totals, shared by the terminal, lcov and HTML renderers so the three can never disagree. Produced by buildRows.

import * as Report from './report.ts';

const coverage = new Map([
  ['/repo/lib/math.ts', { coverable: new Set([1, 2]), covered: new Map([[1, 3]]), sourceContent: null }],
]);
const [row] = Report.buildRows(coverage, new Set<string>(), '/repo');
row.displayPath; // 'lib/math.ts'
row.pct; // 50 — 1 of 2 coverable lines was hit

Properties

Usage

import { type FileRow } from "lib/coverage/report.ts";