Pulse/internal
rcourtman 15d6cae7dd Add unit tests for adaptive scheduler interval selection (scheduler)
46 test cases covering:
- clampFloat helper (9 cases: range checks, boundary conditions)
- Staleness score impact (5 cases: 0/0.25/0.5/0.75/1 scores)
- Error penalty (5 cases: 0 to 10 errors, min clamping)
- Queue depth stretching (5 cases: 1 to 50 depth, max clamping)
- EMA smoothing (convergence behavior with alpha=0.6)
- Jitter (bounds checking, deterministic tests with seeded RNG)
- Boundary conditions (6 cases: zero/negative intervals, max<min)
- Combined factors (3 cases: all factors interacting)
- State persistence (per-instance EMA state isolation)

First unit test file for scheduler.go (previously only had integration tests).
2025-11-30 06:11:22 +00:00
..
agentbinaries chore: fix staticcheck SA warnings 2025-11-27 09:16:53 +00:00
agentupdate Add unit tests for agentupdate utility functions 2025-11-30 03:48:50 +00:00
alerts Add unit tests for Alert clone and metadata utility functions (alerts) 2025-11-30 05:19:38 +00:00
api Add unit tests for RateLimiter (internal/api/ratelimit.go) 2025-11-30 04:33:59 +00:00
auth test: add unit tests for auth package 2025-11-26 13:51:13 +00:00
config Add unit tests for config encryption functions 2025-11-30 01:48:20 +00:00
crypto chore: remove additional dead code 2025-11-27 05:13:26 +00:00
discovery Add unit tests for discovery config_override utility functions 2025-11-30 00:50:07 +00:00
dockeragent Add unit tests for Docker swarm utility functions (dockeragent) 2025-11-30 05:32:52 +00:00
errors test: add unit tests for errors package 2025-11-26 14:09:14 +00:00
hostagent Add unit tests for hostagent utility functions 2025-11-30 01:34:55 +00:00
hostmetrics Fix ZFS storage reporting on TrueNAS SCALE (#718) 2025-11-22 23:53:39 +00:00
logging chore: remove dead code and unused exports 2025-11-27 13:17:39 +00:00
mdadm feat: Add mdadm RAID monitoring support for host agents 2025-11-09 16:36:33 +00:00
metrics chore: remove dead code and unused exports 2025-11-27 13:17:39 +00:00
mock Refine memory visualization with StackedMemoryBar component 2025-11-29 13:48:30 +00:00
models style: use direct type conversions in model converters 2025-11-27 09:24:39 +00:00
monitoring Add unit tests for adaptive scheduler interval selection (scheduler) 2025-11-30 06:11:22 +00:00
notifications Add unit tests for notification queue utility functions 2025-11-30 03:19:23 +00:00
sensors style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
ssh/knownhosts chore: remove additional dead code 2025-11-27 05:13:26 +00:00
system style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
tempproxy chore: fix staticcheck SA warnings 2025-11-27 09:16:53 +00:00
types test: add unit tests for types package 2025-11-26 14:10:21 +00:00
updates Add unit tests for InstallShAdapter utility functions 2025-11-30 04:04:27 +00:00
utils Consolidate duplicate normalizeVersion functions into shared utility 2025-11-29 22:57:33 +00:00
websocket Add unit tests for websocket utility functions 2025-11-30 00:34:38 +00:00