Commit 69e80e5
test(coverage): drive internal/middleware to 95.3% (≥95% target) (#155)
middleware was ~51.8%; black-box + white-box suites now cover auth
bearer/JWT extraction, fingerprint masking + dedup cap, geo fail-open
(+ real MaxMind fixture), rate-limit fail-open on Redis error,
idempotency canonicalisation, DPoP helpers, role lookup, and the
NewRelic emit path. Also fixes a flaky base64-prefix assertion in the
already-merged crypto coverage test (a random nonce can legitimately
begin with "v"; the real invariant is "not a vN. versioned envelope").
internal/middleware 95.3% · internal/crypto 95.6%
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 06f8202 commit 69e80e5
7 files changed
Lines changed: 2633 additions & 1 deletion
File tree
- internal
- crypto
- middleware
- testdata
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
| |||
0 commit comments