mirror of
https://github.com/freemkv/libfreemkv.git
synced 2026-10-07 18:13:10 +00:00
comment: trim two 5-line inline blocks to 3 (surfaced by the more-accurate central comment-guard lexer)
This commit is contained in:
+3
-5
@@ -1592,11 +1592,9 @@ mod tests {
|
||||
assert!(matches!(err, Error::DirNameCollision { .. }));
|
||||
}
|
||||
|
||||
// Two disc names differing only by CASE fold to one host file on a case-
|
||||
// INSENSITIVE host (macOS APFS / Windows NTFS) — that must be a collision,
|
||||
// not a silent overwrite reported clean. On a case-SENSITIVE volume the two
|
||||
// are distinct files that coexist, so the extract must NOT abort. The
|
||||
// outcome tracks the REAL target volume, tested by probing it.
|
||||
// Two names differing only by CASE collide on a case-INSENSITIVE host (macOS
|
||||
// APFS / Windows NTFS) but coexist on a case-SENSITIVE one, so the extract
|
||||
// must abort on the former and not the latter — outcome tracks the real volume.
|
||||
#[test]
|
||||
fn names_differing_only_by_case_collide_only_on_a_case_insensitive_host() {
|
||||
let root = DirSpec {
|
||||
|
||||
+3
-5
@@ -2089,11 +2089,9 @@ mod tests {
|
||||
);
|
||||
}
|
||||
|
||||
// A provisional must retire even PAST the epoch-history cap. Epoch identity
|
||||
// was `epoch_offsets.len()`, which pins at MAX_EPOCHS once the ring is full,
|
||||
// so a provisional captured then compared equal forever and never retired —
|
||||
// drifting that track away from every other for the rest of the title. The
|
||||
// monotonic `epoch_seq` keeps distinguishing epochs past the cap.
|
||||
// A provisional must retire even PAST the epoch-history cap: the old identity
|
||||
// `epoch_offsets.len()` pinned at MAX_EPOCHS once the ring filled, so a
|
||||
// provisional compared equal forever; monotonic `epoch_seq` fixes that.
|
||||
#[test]
|
||||
fn a_provisional_retires_even_past_the_epoch_history_cap() {
|
||||
let mut tc = TimelineContinuity::new();
|
||||
|
||||
Reference in New Issue
Block a user