import { FileCoverageResult, CovInfo, FunctionCoverageResult, InstrumentResult } from "../interface.js"; export declare class Parser { fileCoverageResults: FileCoverageResult[]; functionCoverageResults: FunctionCoverageResult[]; /** key: functionName, value: CodeSnippetIndex trace */ functionCovTraceMap: Map; /** key: functionName, value: { branchInfo, lineInfo } */ functionCovInfoMap: Map; parse(instrumentResults: InstrumentResult[], sourceCodePaths: string[]): Promise; private getTempCovTraceMap; private getDebugInfos; /** * @brief * parse debugInfo and traceInfo to functionCovTraceMap and functionCovInfoMap * @param debugInfoFile debugInfo file path generated by instrumenter */ traceParse(instrumentResult: InstrumentResult): Promise; /** * @brief * generate FunctionCoverageInfo for each Function based on CovTrace and CovInfo. * FunctionCoverageInfo of Function will be merged into Function: * FunctionCoverageInfo of toJson and toJson will be merged into toJson. */ generateFunctionCoverage(): void; /** * @brief * For each sourceFile: * First, filter out all functionCoverageResult from this.functionCoverageResults based on checkFunctionName(sourceFilePath, functionName). * And then, find out which sourceFunction has been tested and which sourceFunction has not been tested. * based on the function name match or lineRange match. * Finally, merge the functionCoverageResult to fileCoverageResult. */ generateFileCoverage(sourceCodePaths: string[]): Promise; } //# sourceMappingURL=index.d.ts.map