feat: add comprehensive test coverage for config module

This commit is contained in:
overtrue
2025-05-27 23:11:29 +08:00
parent 08a6cacdc2
commit dbe573513e
4 changed files with 701 additions and 1 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ mod tests {
"Log level should be a valid tracing level"
);
assert_eq!(USE_STDOUT, true);
assert_eq!(USE_STDOUT, false);
assert_eq!(SAMPLE_RATIO, 1.0);
assert!(SAMPLE_RATIO >= 0.0 && SAMPLE_RATIO <= 1.0, "Sample ratio should be between 0.0 and 1.0");