[Coverage Report] Test Coverage Report — 2026-08-09 #7158
Closed
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-08-16T18:43:34.353Z.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
📊 Test Coverage Report — 2026-08-09
Overall Coverage
Status: Overall test coverage is healthy across most codebase (>90%). However, one critical security module has catastrophic coverage gaps that require immediate attention.
🛡️ Security-Critical Path Status
src/host-iptables.tssrc/host-iptables-rules.tssrc/domain-patterns.tssrc/domain-validation.tssrc/docker-manager.tssrc/cli.ts📋 Coverage Table
Files below 90% statement coverage:
src/bounded-execution/finite-disclosure.tssrc/enclave/runtime-preflight.tssrc/cli.tssrc/artifact-preservation.tssrc/host-env.tssrc/option-parsers.tssrc/enclave/staging.tssrc/enclave/manager.ts🔧 Function Audit
High-value comprehensive tests:
host-iptables-rules.ts: 9/9 functions covered (100%)host-iptables-shared.ts: 15/15 functions covered (100%)domain-validation.ts: 5/5 functions covered (100%)dns-resolver.ts: 9/9 functions covered (100%)config/network-policy.ts: 24/24 functions covered (100%)Function coverage gaps:
src/bounded-execution/finite-disclosure.ts: Only 2/44 functions covered (4.54%)src/enclave/manager.ts: 13/13 functions called but 82.17% statement coveragesrc/enclave/staging.ts: 19/21 functions covered (90.47%)📅 Recent Source Changes (last 7 days)
The codebase includes newly added security-critical modules:
src/bounded-execution/finite-disclosure.ts— Newly introduced, covers bounded execution model and sensitive data disclosure restrictionssrc/enclave/runtime-preflight.ts— Enclave runtime validation and preflight checkssrc/enclave/staging.ts— Enclave container staging and initializationsrc/enclave/manager.ts— Enclave lifecycle managementAll modules are essential for security guarantees but have inconsistent test coverage.
🔎 Notable Findings
🚨 CRITICAL:
finite-disclosure.tshas catastrophic test coverage (9.26% statements, 0.26% branches)runtime-preflight.tsbranch coverage is low (41.02%)✅ GOOD: Core network isolation layers (
host-iptables-*.ts) are fully tested (100%)✅ GOOD: Domain validation is fully tested
🎯 Recommendations
🔴 HIGH PRIORITY
1. Add comprehensive test suite for
src/bounded-execution/finite-disclosure.ts🟠 MEDIUM PRIORITY
2. Improve branch coverage for
src/enclave/runtime-preflight.tsto 70%+3. Improve
src/enclave/staging.tscoverage from 86.15% to 95%+4. Improve
src/cli.tscoverage from 85.71% to 95%+🟡 LOW PRIORITY
5. Improve
src/enclave/manager.tsbranch coverage (currently 68.42%)All reactions