UNPKG

@code-pushup/coverage-plugin

Version:
17 lines (16 loc) 945 B
import type { LCOVRecord } from 'parse-lcov'; import type { AuditOutput } from '@code-pushup/models'; import { type FileCoverage } from '@code-pushup/utils'; import type { CoverageType } from '../../config.js'; export declare function lcovReportToFunctionStat(record: LCOVRecord): FileCoverage; export declare function lcovReportToLineStat(record: LCOVRecord): FileCoverage; export declare function lcovReportToBranchStat(record: LCOVRecord): FileCoverage; export declare const recordToStatFunctionMapper: Record<CoverageType, (record: LCOVRecord) => FileCoverage>; /** * * @param files code coverage of given type for all files * @param coverageType code coverage type * @param gitRoot root directory in repo, for relative paths * @returns Result of complete code ccoverage data coverted to AuditOutput */ export declare function lcovCoverageToAuditOutput(files: FileCoverage[], coverageType: CoverageType, gitRoot: string): AuditOutput;