Land release blocker fixes and workspace cleanup
This commit is contained in:
@@ -308,8 +308,7 @@ fn recording_filename() -> String {
|
||||
/// restarts, so cross-launch collisions are already impossible — the
|
||||
/// counter is the last-mile guarantee against within-launch same-tick
|
||||
/// collisions.
|
||||
static RECORDING_COUNTER: std::sync::atomic::AtomicU64 =
|
||||
std::sync::atomic::AtomicU64::new(0);
|
||||
static RECORDING_COUNTER: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64::new(0);
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
@@ -353,10 +352,20 @@ mod tests {
|
||||
3,
|
||||
"expected three '-' separated parts, got {parts:?}"
|
||||
);
|
||||
assert!(parts[0].chars().all(|c| c.is_ascii_digit()), "secs is digits");
|
||||
assert_eq!(parts[1].len(), 9, "nanos component is zero-padded to 9 digits");
|
||||
assert!(
|
||||
parts[0].chars().all(|c| c.is_ascii_digit()),
|
||||
"secs is digits"
|
||||
);
|
||||
assert_eq!(
|
||||
parts[1].len(),
|
||||
9,
|
||||
"nanos component is zero-padded to 9 digits"
|
||||
);
|
||||
assert!(parts[1].chars().all(|c| c.is_ascii_digit()));
|
||||
assert!(parts[2].len() >= 4, "counter component is zero-padded to >=4 digits");
|
||||
assert!(
|
||||
parts[2].len() >= 4,
|
||||
"counter component is zero-padded to >=4 digits"
|
||||
);
|
||||
assert!(parts[2].chars().all(|c| c.is_ascii_digit()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user