[Coverage Report] Test Coverage Report — 2026-08-20 #7567
Closed
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-08-27T17:02:04.701Z.
|
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-20
Overall Coverage
Status: ✅ Overall coverage exceeds 85% threshold across all metrics. The codebase demonstrates strong test coverage with 92.69% statement coverage.
🛡️ Security-Critical Path Status
Summary: All security-critical files have 100% statement coverage and high branch coverage. The
cli.tswrapper shows good coverage with 85.71% statements (6/7 covered). Domain pattern matching is fully tested with 100% statement coverage and 89.47% branch coverage.📋 Coverage Table
By Directory
🔧 Function Audit
Fully Covered Security Functions (100% statement coverage):
generateSquidConfig()& related Squid ACL generationgenerateDockerCompose()& Docker orchestrationsetupHostIptables()&teardownHostIptables()— network isolation rulesvalidateDomainPattern()— domain ACL validationPartially Covered (> 80% statement coverage):
cli.tsentry point (85.71% — 6/7 lines covered, 1 branch uncovered)Uncovered/Low Coverage (< 80%):
src/bounded-execution/finite-disclosure.ts(9.26% statements, 0.26% branches) — CRITICALsrc/enclave/runtime-preflight.ts(66.66% statements, 41.02% branches)src/commands/validators/config-assembly.ts(69.69% statements, 20% branches)src/microvm/rootfs.ts(71.69% statements, 54.54% branches)src/cloud-hypervisor/virtiofsd.ts(72.51% statements, 55.35% branches)📅 Recent Source Changes (last 7 days)
Note: Git history not accessible in current environment. Review recent PRs and commits in the GitHub repository for context on changes to:
src/cli.ts(entry point updates)src/bounded-execution/(if modified — this is the top coverage gap)src/enclave/(enclave runtime improvements)src/microvm/(Cloud Hypervisor integration)🔎 Notable Findings
🎯 Critical Gap in Bounded Execution:
src/bounded-execution/finite-disclosure.tshas 9.26% statement coverage with only 0.26% branch coverage (1/377 branches). This module appears to handle execution isolation and disclosure controls — coverage urgently needed given its security role.✅ Security Core is Protected: The three most critical files (
host-iptables.ts,squid-config.ts,docker-manager.ts) achieve 100% coverage. All egress filtering, container management, and network isolation logic is well-tested.🟡 Enclave & MicroVM Coverage Gaps: Features for unified enclaves (
runtime-preflight.tsat 66.66%) and Cloud Hypervisor backend (rootfs.tsat 71.69%,virtiofsd.tsat 72.51%) have gaps, suggesting these newer features may lack integration tests or scenario coverage.📊 Strong Overall Health: 92.69% statement coverage across 10,792 statements indicates mature test infrastructure. The distribution shows core functionality is well-covered while newer/optional features lag behind.
🎯 Recommendations
Priority 1 — HIGH
Add coverage for
src/bounded-execution/finite-disclosure.ts(currently 9.26%)Priority 2 — MEDIUM
Improve branch coverage in
src/enclave/runtime-preflight.ts(66.66% stmt, 41.02% branch)Priority 3 — MEDIUM
Improve branch coverage in microVM/Cloud Hypervisor modules
src/microvm/rootfs.ts(71.69%),src/cloud-hypervisor/virtiofsd.ts(72.51%)Report Metadata
All reactions