/** * Coverage Mapper * * Maps test files to source files and calculates coverage */ import type { TestFile, TestMapping, CoverageMetrics, UntestedCode } from "../../types/test-coverage.js"; export declare class CoverageMapper { private projectRoot; private readonly SOURCE_EXTENSIONS; private readonly EXCLUDE_DIRS; private readonly EXCLUDE_FILES; constructor(projectRoot: string); /** * Find all source files in the project */ findSourceFiles(): Promise; /** * Walk directory to find source files */ private walkDirectory; /** * Check if a file is a source file */ private isSourceFile; /** * Create mappings between source files and test files */ createMappings(testFiles: TestFile[]): Promise; /** * Find test files that cover a source file */ private findTestsForSource; /** * Extract exported function names from a source file */ extractFunctions(filePath: string): Promise; /** * Find which functions are likely tested */ private findTestedFunctions; /** * Calculate coverage metrics */ calculateMetrics(testFiles: TestFile[], mappings: TestMapping[]): CoverageMetrics; /** * Find untested code */ findUntestedCode(mappings: TestMapping[]): Promise; /** * Calculate priority for untested code */ private calculatePriority; /** * Suggest test file path for a source file */ private suggestTestPath; /** * Find the line number of a function in a file */ private findFunctionLine; } //# sourceMappingURL=coverage-mapper.d.ts.map