fetch_ml/internal/api/helpers
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
..
db_helpers.go feat(api): add groups and tokens handlers, refactor routes 2026-03-08 12:51:25 -04:00
db_helpers_test.go refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
experiment_setup.go feat(api): integrate scheduler protocol and WebSocket enhancements 2026-02-26 12:05:57 -05:00
hash_helpers.go feat(api): integrate scheduler protocol and WebSocket enhancements 2026-02-26 12:05:57 -05:00
hash_helpers_test.go refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
payload_parser.go refactor: improve API structure and WebSocket protocol 2026-02-16 20:38:12 -05:00
payload_parser_test.go refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
response_helpers.go feat(api): integrate scheduler protocol and WebSocket enhancements 2026-02-26 12:05:57 -05:00
response_helpers_test.go refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
validation_helpers.go feat(api): integrate scheduler protocol and WebSocket enhancements 2026-02-26 12:05:57 -05:00
validation_helpers_test.go refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00