Unit Tests¶
Running¶
cd <repo-root>
make edge-test
# or:
cd edge && GOWORK=off go test -race -count=1 ./...
Current scope¶
Contract tests for config validation and startup validation split.
Deterministic ordering and bounded behavior in
retry,quota,eviction,scheduler.Storage correctness, recovery, and ceiling enforcement checks.
Transport mTLS behavior with positive/negative paths.
Coverage target status¶
Implemented: minimum total coverage threshold is enforced by CI script:
script:
edge/ci/tests/coverage_gate.shdefault threshold:
EDGE_MIN_COVERAGE =60.0fail condition: total coverage
< threshold
Run locally:
make edge-coverage-gate
Evidence¶
Makefiletargetedge-testMakefiletargetedge-coverage-gateedge/ci/tests/coverage_gate.sh.github/workflows/edge-guardrails.yml(coverage-gatejob)edge/*_test.gorecent
make edge-testoutput in user verification logs