Pulse/internal/alerts
rcourtman 5deca850d4 test: Add saveHistoryWithRetry tests for alerts package
Add comprehensive tests for the saveHistoryWithRetry function covering:
- Backup file creation from existing history
- Empty history serialization
- Single retry success
- Read-only directory failure with retries
- Concurrent saves with serialization via saveMu
- Snapshot isolation during save

Coverage: saveHistoryWithRetry 58.6% → 86.2%
Coverage: alerts package 87.4% → 87.8%
2025-12-02 12:49:27 +00:00
..
alerts.go refactor: Extract filter evaluation functions to separate file 2025-12-01 11:28:43 +00:00
alerts_test.go test: Add preserveAlertState, checkPMGQuarantineBacklog, LoadActiveAlerts tests 2025-12-02 12:22:14 +00:00
clone_test.go Add unit tests for Alert clone and metadata utility functions (alerts) 2025-11-30 05:19:38 +00:00
concurrency_test.go Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
filter_evaluation.go refactor: Extract filter evaluation functions to separate file 2025-12-01 11:28:43 +00:00
filter_evaluation_test.go test: Add getGuestThresholds tests for alerts package 2025-12-02 12:35:07 +00:00
history.go Fix critical alert system concurrency and memory leak issues 2025-11-07 09:12:28 +00:00
history_concurrency_test.go Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
history_test.go test: Add saveHistoryWithRetry tests for alerts package 2025-12-02 12:49:27 +00:00
offline_toggle_test.go feat: finalize swarm service monitoring (#598) 2025-10-26 09:35:49 +00:00
per_metric_delay_example_test.go style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
quiet_hours_test.go test: Add comprehensive tests for isInQuietHours function 2025-12-01 15:14:44 +00:00
threshold_update_test.go Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
time_threshold_test.go style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
utility_test.go test: Add comprehensive tests for HandleHostRemoved, ReevaluateGuestAlert 2025-12-01 16:36:48 +00:00