Commit c5c7ced
committed
test: extend coverage gate to core data pipeline modules (#630)
- Add 34 new unit tests for usageAnalysis.ts covering 7 previously
untested exported functions: analyzeContentReferences, analyzeVariableData,
analyzeRequestContext, calculateModelSwitching, trackEnhancedMetrics,
analyzeSessionUsage, getModelUsageFromSession
- Total usageAnalysis test suite grows from 30 to 64 tests
- Add out/src/usageAnalysis.js, tokenEstimation.js, maturityScoring.js
to both test:coverage and test:coverage:ci --test-coverage-include
- Lower aggregate thresholds to 65/70/60 (lines/functions/branches) to
be achievable with the new large modules included; current aggregate
is 70%/86%/79% — thresholds will tighten as coverage grows1 parent e38d004 commit c5c7ced
2 files changed
Lines changed: 543 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
317 | | - | |
| 316 | + | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| 372 | + | |
| 373 | + | |
0 commit comments