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.sh

  • default threshold: EDGE_MIN_COVERAGE =60.0

  • fail condition: total coverage < threshold

Run locally:

make edge-coverage-gate

Evidence

  • Makefile target edge-test

  • Makefile target edge-coverage-gate

  • edge/ci/tests/coverage_gate.sh

  • .github/workflows/edge-guardrails.yml (coverage-gate job)

  • edge/*_test.go

  • recent make edge-test output in user verification logs

See Also