UNPKG

sicua

Version:

A tool for analyzing project structure and dependencies

56 lines (55 loc) 1.29 kB
/** * Ground truth verification for line counting accuracy * This creates test cases with KNOWN correct answers to verify which method is right */ /** * Run ground truth verification */ export declare function verifyLineCounterAccuracy(): { results: { original: { correct: number; total: number; accuracy: number; }; simple: { correct: number; total: number; accuracy: number; }; regex: { correct: number; total: number; accuracy: number; }; detailed: { correct: number; total: number; accuracy: number; }; }; failures: Array<{ testName: string; expected: any; results: { original: any; simple: any; regex: any; detailed: any; }; }>; }; /** * Identify which counting method is most accurate */ export declare function findMostAccurateMethod(): string; /** * Quick test to see which methods agree with ground truth */ export declare function quickGroundTruthTest(): { mostAccurate: string; allAccuracies: { [key: string]: number; }; needsFixes: boolean; };