fetch_ml/internal/api/ws
Jeremie Fraeys a4e2ecdbe6
refactor: co-locate api, audit, auth tests with source code
Move unit tests from tests/unit/ to internal/ following Go conventions:
- tests/unit/api/* -> internal/api/* (WebSocket handlers, helpers, duplicate detection)
- tests/unit/audit/* -> internal/audit/* (alert, sealed, verifier tests)
- tests/unit/auth/* -> internal/auth/* (API key, keychain, user manager)
- tests/unit/crypto/kms/* -> internal/auth/kms/* (cache, protocol tests)

Update import paths in test files to reflect new locations.

Benefits:
- Tests live alongside the code they test
- Easier navigation and maintenance
- Clearer package boundaries
- Follows standard Go project layout
2026-03-12 16:34:54 -04:00
..
handler.go refactor(api): overhaul WebSocket handler and protocol layer 2026-03-12 12:01:21 -04:00
handler_test.go refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
jobs.go refactor(api): overhaul WebSocket handler and protocol layer 2026-03-12 12:01:21 -04:00
validate.go feat(api): integrate scheduler protocol and WebSocket enhancements 2026-02-26 12:05:57 -05:00