rcourtman
0d482f9d63
test: Add DiscoveryConfig UnmarshalJSON tests
...
Cover invalid JSON error path, modern field parsing, legacy field
parsing, and empty object default handling.
Coverage: 60% → 88.9%
2025-12-02 02:29:38 +00:00
rcourtman
151db60267
Add unit tests for discovery config functions (config)
...
Add tests for CloneDiscoveryConfig and NormalizeDiscoveryConfig:
- CloneDiscoveryConfig: 7 tests verifying deep copy, slice independence
- NormalizeDiscoveryConfig: 16 tests covering defaults, validation,
sanitization, edge cases
Total: 23 test cases for discovery config handling.
2025-11-30 10:49:03 +00:00
rcourtman
19e1d81779
Add unit tests for sanitizeCIDRList (config)
2025-11-30 07:35:52 +00:00
rcourtman
a32aa60600
Add unit tests for config utility functions (config)
...
Test coverage for IsPasswordHashed, IsValidDiscoveryEnvironment, and
splitAndTrim functions. 63 test cases covering bcrypt hash validation,
discovery environment validation, and comma-separated string parsing.
2025-11-30 07:27:59 +00:00