Commit d8f3fbf
molty3000
test: raise coverage from 92.97% to 98.97% (803 tests, 44 files)
Added:
- test/security/utils.test.ts (127 tests): all security utils
- test/security/config.test.ts (17 tests): validateSecurityConfig edge cases
- Load balancer strategy tests: p2c, latency, weighted-least-connections
- betterByLatency helper tests
- startSessionCleanup cleanup logic tests
- JWT key rotation: refreshJWKS + startJWKSRefresh
- Session manager: startCleanup interval tests
- Error handler middleware: URL extraction tests
Remaining gaps (bottlenecked by complex E2E/internal timers):
- cluster-manager.ts 90% (process-level workers)
- gateway.ts 94% (default errorHandler, LB onError callback)
- http-load-balancer 97% (session cleanup interval callback)
- session-manager 96% (setInterval callback body)1 parent 2439c87 commit d8f3fbf
8 files changed
Lines changed: 1723 additions & 0 deletions
File tree
- src/security
- test
- gateway
- load-balancer
- security
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
0 commit comments