UNPKG

@code-pushup/coverage-plugin

Version:
20 lines (19 loc) 905 B
import type { LCOVRecord } from 'parse-lcov'; import type { AuditOutput } from '@code-pushup/models'; import type { CoverageType } from '../../config.js'; import type { LCOVStat } from './types.js'; export declare function lcovReportToFunctionStat(record: LCOVRecord): LCOVStat; export declare function lcovReportToLineStat(record: LCOVRecord): LCOVStat; export declare function lcovReportToBranchStat(record: LCOVRecord): LCOVStat; export declare const recordToStatFunctionMapper: { branch: typeof lcovReportToBranchStat; line: typeof lcovReportToLineStat; function: typeof lcovReportToFunctionStat; }; /** * * @param stat code coverage result for a given type * @param coverageType code coverage type * @returns Result of complete code ccoverage data coverted to AuditOutput */ export declare function lcovCoverageToAuditOutput(stat: LCOVStat, coverageType: CoverageType): AuditOutput;