Charles P. Cross
ba8beb53b3
test(coverage): add tests to meet 45% CI threshold
Add comprehensive test coverage for previously untested functions:
internal/debug/debug_test.go:
- TestSetVerbose: tests SetVerbose() and its effect on Enabled()
- TestSetQuietAndIsQuiet: tests SetQuiet() and IsQuiet() functions
- TestPrintNormal: tests quiet mode suppression of normal output
- TestPrintlnNormal: tests quiet mode suppression of println output
internal/export/config_test.go (new file):
- TestLoadConfig: comprehensive tests for LoadConfig() including:
- Default values when no config exists
- Loading custom policies (both regular and auto-export)
- Loading retry attempts, backoff, skip encoding errors, write manifest
- Handling invalid/malformed config values gracefully
internal/export/policy_test.go:
- TestErrorPolicyString: tests String() method on ErrorPolicy
- TestNewManifest: tests manifest creation with proper defaults
- TestWriteManifest: tests manifest file writing and error handling
These tests bring coverage from 44.8% to 45.0%, meeting the CI threshold.
2025-12-18 17:45:49 -05:00
..
2025-12-05 13:22:09 -08:00
2025-12-14 22:18:10 -08:00
2025-12-18 00:49:07 -05:00
2025-12-03 22:44:59 -08:00
2025-12-13 12:50:33 -08:00
2025-12-18 17:45:49 -05:00
2025-12-18 17:45:49 -05:00
2025-12-14 22:36:51 -08:00
2025-12-18 20:06:41 +01:00
2025-12-18 11:09:26 -08:00
2025-12-14 15:21:29 -08:00
2025-12-16 22:35:29 -08:00
2025-12-18 02:48:13 -08:00
2025-12-18 17:45:49 -05:00
2025-12-16 14:20:49 -08:00
2025-12-18 02:48:13 -08:00
2025-12-16 13:19:22 -08:00
2025-12-16 01:07:55 -08:00