Pulse/internal
rcourtman 04c12414d2 Add unit tests for diagnostics utility functions
Test coverage for 9 pure functions in internal/api/diagnostics.go:
- isFallbackMemorySource: 13 cases covering fallback and non-fallback sources
- copyStringSlice: 4 cases including nil handling and copy verification
- normalizeHostForComparison: 16 cases for URL normalization
- normalizeVersionLabel: 11 cases for version prefix handling
- contains: 8 cases for string slice membership
- containsFold: 11 cases for case-insensitive matching
- interfaceToStringSlice: 9 cases for type conversion
- preferredDockerHostName: 5 cases for name preference hierarchy
- formatTimeMaybe: 3 cases for time formatting
2025-11-30 00:18:41 +00:00
..
agentbinaries chore: fix staticcheck SA warnings 2025-11-27 09:16:53 +00:00
agentupdate Consolidate duplicate normalizeVersion functions into shared utility 2025-11-29 22:57:33 +00:00
alerts style: fix revive linter warnings 2025-11-27 10:26:26 +00:00
api Add unit tests for diagnostics utility functions 2025-11-30 00:18:41 +00:00
auth test: add unit tests for auth package 2025-11-26 13:51:13 +00:00
config Rebuild agent token bindings on API token config reload 2025-11-29 14:09:30 +00:00
crypto chore: remove additional dead code 2025-11-27 05:13:26 +00:00
discovery Fix discovery test Prometheus metric collision 2025-11-11 23:34:49 +00:00
dockeragent Consolidate duplicate normalizeVersion functions into shared utility 2025-11-29 22:57:33 +00:00
errors test: add unit tests for errors package 2025-11-26 14:09:14 +00:00
hostagent test: add unit tests for hostagent package 2025-11-26 14:09: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 TaskQueue Upsert and Remove methods 2025-11-29 21:38:33 +00:00
notifications refactor: replace deprecated strings.Title with custom titleCase 2025-11-27 09:22:52 +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 ParseVersion function 2025-11-29 16:00:44 +00:00
utils Consolidate duplicate normalizeVersion functions into shared utility 2025-11-29 22:57:33 +00:00
websocket chore: fix staticcheck U1000 unused code warnings 2025-11-27 09:12:17 +00:00