You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assessment: Overall coverage is strong across all metrics, with statement and line coverage exceeding 92%. Branch coverage at 85.76% indicates most conditional paths are tested, though opportunities remain for improvement in edge cases and error paths.
🛡️ Security-Critical Path Status
File
Statements
Branches
Functions
Status
src/cli.ts
85.71%
50.00%
100%
⚠️ Moderate Risk
src/domain-patterns.ts
100%
89.47%
100%
✅ Healthy
src/docker-manager.ts
100%
100%
100%
✅ Healthy
src/squid-config.ts
100%
100%
100%
✅ Healthy
src/host-iptables-chain.ts
100%
100%
100%
✅ Healthy
Key Insight: Four of five critical security components have perfect or near-perfect coverage. cli.ts requires immediate attention due to 50% branch coverage, likely indicating untested error-handling paths in the main orchestration logic.
Branch Coverage Gap in CLI: Only 50% of conditional branches tested in cli.ts (2/4 branches). This is the entry point for all commands, so untested branches likely represent critical error paths (config generation failure, container startup failure, signal handling).
Finite-Disclosure Module Unverified: With 9.26% statement coverage and 0.26% branch coverage, the bounded-execution/finite-disclosure system (44 functions, 374 lines) is essentially untested. This module appears to control credential and capability disclosure in advanced scenarios — it must be tested comprehensively before production use.
Strong Foundation in Core Firewall: All three core firewall components (squid-config, domain-patterns, docker-manager) have 100% statement coverage, indicating the proxy filtering, domain validation, and container lifecycle are well-tested.
Enclave Preflight Undertested: Runtime preflight checks show 100% function coverage but only 66.66% statement coverage, indicating partial execution paths in MCP gateway interaction and fallback scenarios.
🎯 Recommendations
🔴 High Priority
Fix cli.ts branch coverage (50% → 85%+)
Add unit tests for error scenarios: config generation failure, docker-compose startup timeout, container unhealthy, SIGTERM/SIGINT signal handling
Ensure all conditional branches in main orchestration are exercised
Effort: 2–3 hours | Risk Reduction: High
Audit & test bounded-execution/finite-disclosure.ts comprehensively
Currently at 9.26% coverage; module is critical for credential/capability isolation
Add functional test suite covering all 44 functions
This project maintains strong overall coverage (92.52% statements, 85.76% branches) with excellent security foundations. All core firewall components are well-tested. However, two issues require immediate action:
cli.ts — incomplete branch coverage in main orchestration
Addressing these two items would significantly reduce security and reliability risks in advanced features (bounded execution, credential isolation) while ensuring robust command orchestration.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
📊 Test Coverage Report — 2026-08-21
Overall Coverage
Assessment: Overall coverage is strong across all metrics, with statement and line coverage exceeding 92%. Branch coverage at 85.76% indicates most conditional paths are tested, though opportunities remain for improvement in edge cases and error paths.
🛡️ Security-Critical Path Status
Key Insight: Four of five critical security components have perfect or near-perfect coverage.
cli.tsrequires immediate attention due to 50% branch coverage, likely indicating untested error-handling paths in the main orchestration logic.📋 Coverage Table
Critical Files (Security-Focused)
domain-patterns.ts): 100% statements, 89.47% branchesdocker-manager.ts): 100% all metricssquid-config.ts): 100% all metricshost-iptables-chain.ts): 100% all metricscli.ts): 85.71% statements, 50% branchesHigh-Risk Files (Below 75%)
src/bounded-execution/finite-disclosure.ts: 9.26% statements, 0.26% branches (374/43 lines)src/commands/validators/config-assembly.ts: 69.69% statements, 20% branchessrc/enclave/runtime-preflight.ts: 66.66% statements, 41.02% branchessrc/microvm/rootfs.ts: 71.69% statements, 54.54% branchessrc/cloud-hypervisor/virtiofsd.ts: 72.51% statements, 55.35% branches🔧 Function Audit
Uncovered/Under-covered Functions by Category:
CLI & Orchestration (src/cli.ts)
Bounded Execution Module (src/bounded-execution/finite-disclosure.ts)
Enclave Runtime (src/enclave/runtime-preflight.ts)
MicroVM & Cloud Hypervisor
virtiofsd.ts: 9/19 functions covered (47.36%)rootfs.ts: 6/6 functions covered but only 72% statement coverage📅 Recent Source Changes (last 7 days)
Note: Git history querying encountered permission restrictions. Based on file evidence in coverage data, the following areas show active development:
src/cloud-hypervisor/) — virtiofsd, rootfs, and diagnostic utilitiessrc/bounded-execution/) — finite-disclosure, capability controlsrc/enclave/runtime-preflight.ts) — MCP gateway preflight validation🔎 Notable Findings
Branch Coverage Gap in CLI: Only 50% of conditional branches tested in
cli.ts(2/4 branches). This is the entry point for all commands, so untested branches likely represent critical error paths (config generation failure, container startup failure, signal handling).Finite-Disclosure Module Unverified: With 9.26% statement coverage and 0.26% branch coverage, the bounded-execution/finite-disclosure system (44 functions, 374 lines) is essentially untested. This module appears to control credential and capability disclosure in advanced scenarios — it must be tested comprehensively before production use.
Strong Foundation in Core Firewall: All three core firewall components (squid-config, domain-patterns, docker-manager) have 100% statement coverage, indicating the proxy filtering, domain validation, and container lifecycle are well-tested.
Enclave Preflight Undertested: Runtime preflight checks show 100% function coverage but only 66.66% statement coverage, indicating partial execution paths in MCP gateway interaction and fallback scenarios.
🎯 Recommendations
🔴 High Priority
Fix cli.ts branch coverage (50% → 85%+)
Audit & test bounded-execution/finite-disclosure.ts comprehensively
🟡 Medium Priority
Expand enclave runtime-preflight.ts edge-case coverage (66.66% → 85%+)
Improve microVM backend coverage (virtiofsd, rootfs) to 80%+
🟢 Low Priority
Summary
This project maintains strong overall coverage (92.52% statements, 85.76% branches) with excellent security foundations. All core firewall components are well-tested. However, two issues require immediate action:
Addressing these two items would significantly reduce security and reliability risks in advanced features (bounded execution, credential isolation) while ensuring robust command orchestration.
All reactions