|
|
24aa84bd9c
|
test: add comprehensive tests to improve coverage
Build and Test / test (push) Has been cancelled
Build and Test / build (push) Has been cancelled
Build and Test / docker (push) Has been cancelled
- observability: added tests for LogLevel.String(), Warn(), Warnf(), Infof(),
Debugf(), Error(), WithFields(), and concurrent access patterns
- file: added tests for Reopen(), Close(), empty/whitespace paths,
validateFilePath allowed/rejected paths, concurrent writes, Flush(),
and marshal errors
- config: added tests for TimeWindowConfig.GetDuration(),
CorrelationConfig getters, validation scenarios (no inputs, no outputs,
duplicate sockets, ClickHouse validation), and LogConfig.GetLevel()
Coverage improvements:
- observability: 57.7% → 79.5%
- file: 68.6% → 78.6%
- config: 69.8% → 97.7%
- total: 68.6% → 74.4%
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
|
2026-03-02 22:52:09 +01:00 |
|
|
|
a3ae5421cf
|
chore: version 1.0.7 - add log levels
Build and Test / test (push) Has been cancelled
Build and Test / build (push) Has been cancelled
Build and Test / docker (push) Has been cancelled
- Add configurable log levels: DEBUG, INFO, WARN, ERROR
- Replace debug.enabled with log.level in configuration
- Add Warn/Warnf methods for warning messages
- Log orphan events and buffer overflow as WARN
- Log parse errors as WARN
- Log raw events and correlations as DEBUG
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
|
2026-03-01 02:33:04 +01:00 |
|