Skip to content

Conversation

@sgaunet
Copy link
Owner

@sgaunet sgaunet commented Dec 10, 2025

Add extensive test coverage for configuration validation edge cases:

  • Empty keywords array validation
  • Keywords containing empty strings detection
  • Invalid strftime format directives validation
  • Log level case sensitivity tests (34 test cases)
  • Conflicting configuration detection (detection disabled with keywords)
  • Buffer mode validation for all modes
  • Output format validation for all formats
  • Color validation case insensitivity

Enhance validation logic:

  • Add check for empty strings in keyword arrays
  • Add detection for conflicting configuration
  • Add 3 new error types in apperrors package

Test coverage: 99.2% overall, 100% validation code coverage
Total: 8 test functions with ~150 test cases

Closes #18

…uration

Add extensive test coverage for configuration validation edge cases:
- Empty keywords array validation
- Keywords containing empty strings detection
- Invalid strftime format directives validation
- Log level case sensitivity tests (34 test cases)
- Conflicting configuration detection (detection disabled with keywords)
- Buffer mode validation for all modes
- Output format validation for all formats
- Color validation case insensitivity

Enhance validation logic:
- Add check for empty strings in keyword arrays
- Add detection for conflicting configuration
- Add 3 new error types in apperrors package

Test coverage: 99.2% overall, 100% validation code coverage
Total: 8 test functions with ~150 test cases

Closes #18
@sgaunet sgaunet linked an issue Dec 10, 2025 that may be closed by this pull request
11 tasks
@sgaunet sgaunet self-assigned this Dec 10, 2025
@sgaunet sgaunet merged commit 42d4553 into main Dec 10, 2025
3 checks passed
@sgaunet sgaunet deleted the 18-add-validation-tests-for-malformed-configuration branch December 10, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add validation tests for malformed configuration

1 participant