[Coverage Report] Test Coverage Report — 2026-08-17 #7462
Closed
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-08-24T18:44:44.462Z.
|
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-17
Overall Coverage
Assessment: Overall coverage is strong (>92% for lines and statements), but branch coverage at 85.84% indicates some complex conditional paths need additional tests.
🛡️ Security-Critical Path Status
src/host-iptables.tssrc/host-iptables-rules.tssrc/host-iptables-shared.tssrc/squid-config.tssrc/domain-patterns.tssrc/domain-matchers.tssrc/docker-manager.tssrc/cli.tsKey Finding: Core firewall components (host-iptables, squid-config) have excellent coverage. The main entry point (
src/cli.ts) has gaps in branch coverage.📋 Coverage Table
Tier 1 - Excellent (≥95%)
src/api-proxy-config-warnings.ts: 100% statements, 100% branchessrc/host-identity.ts: 100% statements, 100% branchessrc/container-stop.ts: 100% statements, 100% branchessrc/config-mapper.ts: 100% statements, 100% branchessrc/schema-validator.ts: 100% statements, 100% branchessrc/ssl-bump.ts: 100% statements, 100% branchessrc/dns-resolver.ts: 97.61% statements, 93.54% branchessrc/option-parsers.ts: 97.5% statements, 94.44% branchesTier 2 - Good (80–94%)
src/sbx-manager.ts: 99.4% statements, 90.9% branchessrc/topology.ts: 98.93% statements, 92.3% branchessrc/container-lifecycle.ts: 96.23% statements, 90% branchessrc/pid-tracker.ts: 98.78% statements, 84.61% branchessrc/cloud-hypervisor-runtime-backend.ts: 94.57% statements, 80.21% branchesTier 3 - Moderate (70–79%)
src/cloud-hypervisor/exports.ts: 81.42% statements, 67.74% branchessrc/cloud-hypervisor/diagnostics.ts: 82.75% statements, 78.37% branchessrc/squid-log-reader.ts: 91.52% statements, 84.84% branches🔧 Function Audit
Critical File Audits:
src/bounded-execution/finite-disclosure.ts– 🔴 CRITICALsrc/enclave/runtime-preflight.ts– 🟠 LOWsrc/commands/validators/config-assembly.ts– 🟠 LOWsrc/cloud-hypervisor/virtiofsd.ts– 🟠 LOWsrc/microvm/rootfs.ts– 🟠 LOW📅 Recent Source Changes (last 7 days)
Recent modifications suggest active development in:
These areas align with identified low-coverage zones, indicating new code that hasn't yet received full test coverage.
🔎 Notable Findings
Security Perimeter: Strong — Core network isolation modules (
host-iptables,squid-config,docker-manager) are all 100% covered, ensuring firewall correctness.Branch Coverage Weak Spot — Overall branch coverage (85.84%) lags statements (92.71%) by ~7 points. Files like
src/cli.ts(50% branch) andsrc/cloud-hypervisor/exports.ts(67.74% branch) need edge case testing.New Features Under-Tested — Newer systems (Finite Disclosure: 9.26%, Enclaves: 66.66%, Cloud Hypervisor features: 72–82%) are in active development but lack comprehensive test suites. These are also complexity-critical and security-sensitive.
API Proxy & Logging Solid — API proxy, log aggregation, and DNS resolution are all >93% covered, indicating mature, well-tested paths.
🎯 Recommendations
Priority 1 (High) — Fix Critical Coverage Gaps
src/bounded-execution/finite-disclosure.tsPriority 2 (High) — Increase Branch Coverage for Core CLI
src/cli.tsPriority 3 (Medium) — Improve Cloud Hypervisor Test Coverage
src/cloud-hypervisor/virtiofsd.ts,src/cloud-hypervisor/exports.ts,src/microvm/rootfs.tsAll reactions