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
Files responsible for network isolation and domain filtering:
File
Lines
Statements
Functions
Branches
Status
src/host-iptables.ts
100%
100%
100%
100%
✅ Secure
src/host-iptables-rules.ts
100%
100%
100%
100%
✅ Secure
src/host-iptables-chain.ts
100%
100%
100%
100%
✅ Secure
src/host-iptables-shared.ts
100%
100%
100%
100%
✅ Secure
src/domain-patterns.ts
100%
100%
100%
89.5%
✅ Secure*
src/docker-manager.ts
100%
100%
100%
N/A
✅ Secure
src/squid-config.ts
100%
100%
100%
N/A
✅ Secure
* Branch coverage gap at 89.5%: Some edge cases in domain pattern validation (6 branch paths) remain untested. However, all executable statements are covered. Consider adding tests for boundary conditions (e.g., deeply nested subdomains, Unicode handling).
📋 Coverage Table
High-risk files with <80% statement coverage:
File
Statements
Branches
Issue
Risk Level
src/bounded-execution/finite-disclosure.ts
38.12%⚠️
25.89%
Core finite-disclosure logic untested
🔴 CRITICAL
src/nvx/index.ts
0%⚠️
100%
Main entry point not exercised
🔴 CRITICAL
src/microvm/network-reservation.ts
50.22%⚠️
54.26%
Half of network allocation logic untested
🟠 HIGH
src/nvx/preflight.ts
63.15%
62.29%
Pre-execution checks partially covered
🟠 HIGH
src/enclave/runtime-preflight.ts
68.42%
43.90%
Enclave startup validation weak
🟠 HIGH
Notable gaps in supporting modules:
File
Statements
Issue
src/enclave/github-gateway.ts
79.71%
GitHub API integration logic under-tested
src/enclave/staging.ts
86.36%
Enclave artifact staging incomplete
src/microvm/rootfs.ts
71.69%
Root filesystem builder gaps
src/nvx/one-shot-adapter.ts
77.36%
One-shot execution adapter logic under-covered
🔧 Function Audit
Functions never exercised (0 coverage within covered branches):
src/nvx/index.ts: 35 functions — all untested
All re-exports and composition functions lack test coverage
No integration tests for the module's public API
Functions partially covered (45–89% range):
src/nvx/preflight.ts: 45.45% function coverage (5 of 11 functions)
Missing: edge-case handlers for invalid configurations
src/enclave/runtime-preflight.ts: 100% functions listed, but only 68.42% statements
Functions exist but conditional branches are untested
Missing: error recovery paths
src/microvm/network-reservation.ts: 56.81% function coverage (25 of 44 functions)
Missing: network conflict resolution, IP allocation edge cases
📅 Recent Source Changes (last 7 days)
Unable to retrieve recent git history due to environment constraints. Review the git log manually:
cd /home/runner/work/gh-aw-firewall/gh-aw-firewall && \
git log --oneline --since="7 days ago" -- src/
Files in focus:
Monitor changes to src/nvx/* (0% coverage on index.ts is a regression risk)
Monitor changes to src/bounded-execution/finite-disclosure.ts (38% is low for a security-critical module)
Watch src/enclave/runtime-preflight.ts (pre-execution validation; regressions are security risks)
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-09-21
Overall Coverage
Aggregate metrics across 124 source files:
🛡️ Security-Critical Path Status
Files responsible for network isolation and domain filtering:
src/host-iptables.tssrc/host-iptables-rules.tssrc/host-iptables-chain.tssrc/host-iptables-shared.tssrc/domain-patterns.tssrc/docker-manager.tssrc/squid-config.ts* Branch coverage gap at 89.5%: Some edge cases in domain pattern validation (6 branch paths) remain untested. However, all executable statements are covered. Consider adding tests for boundary conditions (e.g., deeply nested subdomains, Unicode handling).
📋 Coverage Table
High-risk files with <80% statement coverage:
src/bounded-execution/finite-disclosure.tssrc/nvx/index.tssrc/microvm/network-reservation.tssrc/nvx/preflight.tssrc/enclave/runtime-preflight.tsNotable gaps in supporting modules:
src/enclave/github-gateway.tssrc/enclave/staging.tssrc/microvm/rootfs.tssrc/nvx/one-shot-adapter.ts🔧 Function Audit
Functions never exercised (0 coverage within covered branches):
src/nvx/index.ts: 35 functions — all untestedFunctions partially covered (45–89% range):
src/nvx/preflight.ts: 45.45% function coverage (5 of 11 functions)src/enclave/runtime-preflight.ts: 100% functions listed, but only 68.42% statementssrc/microvm/network-reservation.ts: 56.81% function coverage (25 of 44 functions)📅 Recent Source Changes (last 7 days)
Unable to retrieve recent git history due to environment constraints. Review the git log manually:
Files in focus:
src/nvx/*(0% coverage on index.ts is a regression risk)src/bounded-execution/finite-disclosure.ts(38% is low for a security-critical module)src/enclave/runtime-preflight.ts(pre-execution validation; regressions are security risks)🔎 Notable Findings
🔴 CRITICAL:
src/nvx/index.ts— 0% Statement Coverage🔴 CRITICAL:
src/bounded-execution/finite-disclosure.ts— 38.12% Statement Coveragesrc/domain-patterns.ts: 89.47% (2 branch misses)src/host-iptables-network.ts: 88.88% (1 branch miss)🟠 HIGH:
src/microvm/network-reservation.ts— 50.22% Statement Coverage🎯 Recommendations
Priority 1 (CRITICAL) — Fix in next release
Add tests for
src/nvx/index.tsIncrease statement coverage in
src/bounded-execution/finite-disclosure.tsto >80%Priority 2 (HIGH) — Address in current iteration
Achieve >90% branch coverage for
src/domain-patterns.ts.,.., internationalized domains).Increase
src/microvm/network-reservation.tsto >75% statement coveragePriority 3 (MEDIUM) — Monitor & improve
Improve enclave preflight coverage
src/enclave/runtime-preflight.tsandsrc/nvx/preflight.tshave weak branch coverage.Track coverage trend
Report generated on 2026-09-21
Next review recommended: 2026-09-28 (or after significant changes to nvx, bounded-execution, or microvm modules)
All reactions