Skip to content

parseLcovTotals

Sums the per-file counts of an lcov report.

Import:

import { parseLcovTotals } from '@mnaoumov/obsidian-dev-toolkit/test-runners/coverage-badge';

Signature:

function parseLcovTotals(lcov: string): CoverageTotals

Parameters:

Parameter Type Description
lcov string The text of the report.

Returns: CoverageTotals — The CoverageTotals.