mirror of
https://github.com/Nanaloveyuki/BitLogger.git
synced 2026-07-27 02:12:18 +00:00
✨ Add Int64 file rotation path and JSON roundtrip
This commit is contained in:
@@ -576,6 +576,17 @@ test "file sink rotation config normalizes invalid inputs" {
|
||||
}
|
||||
}
|
||||
|
||||
///|
|
||||
test "file rotation i64 preserves wide threshold metadata" {
|
||||
let rotation = file_rotation_i64(4294967296L, max_backups=2)
|
||||
inspect(rotation.max_bytes, content="2147483647")
|
||||
inspect(rotation.max_backups, content="2")
|
||||
match rotation.native_wide_max_bytes {
|
||||
Some(value) => inspect(value, content="4294967296")
|
||||
None => inspect(false, content="true")
|
||||
}
|
||||
}
|
||||
|
||||
///|
|
||||
test "file sink setters update auto flush and rotation state" {
|
||||
let sink = file_sink("bitlogger-setters.log")
|
||||
|
||||
Reference in New Issue
Block a user