[Coverage Report] Test Coverage Report — 2026-06-21 #5362
Closed
Replies: 1 comment
-
|
This discussion was automatically closed because it expired on 2026-06-28T17:54:13.567Z.
|
Beta Was this translation helpful? Give feedback.
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.
-
Overall Coverage
All metrics exceed configured thresholds (statements ≥38%, branches ≥30%, functions ≥35%, lines ≥38%).
Security-Critical File Coverage
squid-config.tsdocker-manager.tshost-iptables-cleanup.tshost-iptables-network.tshost-iptables-rules.tsdomain-patterns.tscli.tsFiles With Lowest Coverage
squid-log-reader.tscli.tsconfig-writer.tscommands/logs-command-helpers.tsdomain-patterns.tsNotable Findings
domain-patterns.ts(2 uncovered branches, 89.47%) — the module that validates and normalises domain ACL rules controlling what traffic the firewall allows.host-iptables-rules.tshas 3 uncovered branches (96.05%) in iptables rule generation. This is the most security-sensitive path in the codebase; even a small gap here may leave error-handling or edge-case rule variants untested.squid-log-reader.tshas the lowest line coverage at 82.22% (8 uncovered lines), which may affect the reliability of audit log parsing — the component used for compliance reporting and incident detection.Recommendations
domain-patterns.tsto cover the 2 remaining edge cases in domain pattern validation. A logic bypass here directly weakens ACL enforcement — the firewall's primary security guarantee.host-iptables-rules.tstests to cover the 3 uncovered branches in iptables rule construction. Focus on conditional rule variants and error-handling paths that may produce subtly incorrect network isolation rules.squid-log-reader.tsline coverage from 82% to ≥95%. The uncovered lines likely represent error handling paths; if untested, they could cause silent log loss during security incident investigation or compliance audits.Generated from
coverage/coverage-summary.json· 67 unit test files · 35 integration test files · Branch:main· Date: 2026-06-21Beta Was this translation helpful? Give feedback.
All reactions