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