/** * Agentic QE v3 - Gap Detection Service * Implements IGapDetectionService with risk-based prioritization */ import { Result } from '../../../shared/types'; import { MemoryBackend } from '../../../kernel/interfaces'; import { GapDetectionRequest, CoverageGaps, CoverageGap } from '../interfaces'; export interface IGapDetectionService { /** Detect uncovered code regions */ detectGaps(request: GapDetectionRequest): Promise>; /** Prioritize gaps by risk score, size, or recent changes */ prioritizeGaps(gaps: CoverageGap[], strategy: 'risk' | 'size' | 'recent-changes'): CoverageGap[]; /** Suggest tests to fill coverage gaps */ suggestTests(gap: CoverageGap): Promise>; } export interface TestSuggestion { type: 'unit' | 'integration' | 'e2e'; description: string; priority: 'high' | 'medium' | 'low'; targetLines: number[]; estimatedEffort: number; testTemplate?: string; } export declare class GapDetectorService implements IGapDetectionService { private readonly memory; private static readonly DEFAULT_MIN_COVERAGE; private static readonly VECTOR_DIMENSION; constructor(memory: MemoryBackend); /** * Detect uncovered code regions using vector similarity for O(log n) analysis */ detectGaps(request: GapDetectionRequest): Promise>; /** * Prioritize gaps based on specified strategy */ prioritizeGaps(gaps: CoverageGap[], strategy: 'risk' | 'size' | 'recent-changes'): CoverageGap[]; /** * Suggest tests to fill a coverage gap */ suggestTests(gap: CoverageGap): Promise>; private analyzeFileGaps; private calculateFileCoverage; private identifyUncoveredRegions; private getBranchesInRegion; private calculateRegionRiskScore; private getHistoricalRisk; private riskScoreToSeverity; private severityToNumber; private getRecencyScore; private generateGapId; private generateRecommendation; private calculateTotalEffort; private storeGapPatterns; private createGapEmbedding; private findSimilarAddressedGaps; private createUnitTestSuggestion; private generateUnitTestTemplate; private toCamelCase; private generateIntegrationTestTemplate; } //# sourceMappingURL=gap-detector.d.ts.map