import {
readLCOV,
readLCOVSync,
LCOVRecord,
FunctionsDetails,
BranchesDetails,
LinesDetails
} from "read-lcov-safe";
readLCOV(path).then((lcov) => {
console.log(lcov);
});
import { readLCOV, readLCOVSync } from "read-lcov-safe";
function readLCOV(path: string): Promise<LCOVRecord[]>;
function readLCOVSync(path: string): LCOVRecord[];
type LCOVRecord = {
title: string;
file: string;
functions: LCOVStats & {
details: FunctionsDetails[];
};
branches: LCOVStats & {
details: BranchesDetails[];
};
lines: LCOVStats & {
details: LinesDetails[];
};
}
type LCOVStats = {
found: number;
hit: number;
}
type FunctionsDetails = {
name: string;
line: number;
hit?: number;
}
type BranchesDetails = {
line: number;
block: number;
branch: number;
taken: number;
};
type LinesDetails = {
line: number;
hit: number;
}