@code-pushup/coverage-plugin
Version:
Code PushUp plugin for tracking code coverage ☂
17 lines (16 loc) • 945 B
TypeScript
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;