/** * Test Coverage Service * * Analyzes test coverage, quality, and provides suggestions */ import type { TestAnalysisResult, TestFile, CoverageMetrics, TestSmell, UntestedCode, TestSuggestion, TestAnalysisOptions } from "../../types/test-coverage.js"; /** * Service for analyzing test coverage and test quality. * * Parses test files, maps coverage data, detects test smells, * and suggests tests for uncovered code paths. */ export declare class TestCoverageService { private projectRoot; private parser; private mapper; private smellDetector; private cachedAnalysis; private readonly CACHE_DURATION; /** * @param projectRoot - Root directory of the project */ constructor(projectRoot: string); /** * Analyze all tests in the project */ analyzeTests(options?: TestAnalysisOptions): Promise; /** * Get tests for a specific source file */ getTestsForFile(sourceFile: string): Promise; /** * Get coverage metrics */ getCoverageMetrics(): Promise; /** * Find untested code */ findUntested(): Promise; /** * Detect test smells */ detectTestSmells(): Promise; /** * Suggest tests for a file */ suggestTests(sourceFile: string): Promise; /** * Check test quality for a file */ checkQuality(testFile: string): Promise<{ score: number; issues: TestSmell[]; summary: string; }>; /** * Detect primary test framework */ private detectPrimaryFramework; /** * Convert camelCase to words */ private camelToWords; /** * Suggest test file path for a source file */ private suggestTestPath; /** * Clear cached analysis */ clearCache(): void; } //# sourceMappingURL=index.d.ts.map