Regenerate the matrix over the third wave

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-30 14:02:40 +02:00
co-authored by Claude Opus 5
parent 509c3a3e96
commit 9994bb4ce7
6 changed files with 91 additions and 80 deletions
+3 -1
View File
@@ -515,7 +515,9 @@ mod tests {
// The whole reason the `.rs` exception exists: redacting these to
// `<path>` leaves a backtrace of nothing but symbol names, and the
// line number is a fact about this codebase rather than about anyone.
let r = redact(" 3: dr_ui::library::run_scan\n at ./ui/dr-ui/src/library.rs:1270:9\n");
let r = redact(
" 3: dr_ui::library::run_scan\n at ./ui/dr-ui/src/library.rs:1270:9\n",
);
assert!(r.contains("library.rs:1270:9"), "{r}");
assert!(r.contains("dr_ui::library::run_scan"), "{r}");
assert!(!r.contains("ui/dr-ui/src"), "{r}");
+4 -1
View File
@@ -434,7 +434,10 @@ mod tests {
let current = fs::metadata(dir.join(FILE_NAME))
.expect("a current log")
.len();
assert!(current <= cap, "the current log is {current} bytes, over {cap}");
assert!(
current <= cap,
"the current log is {current} bytes, over {cap}"
);
let previous = fs::metadata(dir.join(format!("{FILE_NAME}.1")))
.expect("a rotated log, since 500 lines cannot fit in 4 KiB")
+8 -2
View File
@@ -329,7 +329,10 @@ mod tests {
!out.contains(secret),
"redaction left the credential behind\n in: {line}\n out: {out}"
);
assert!(out.contains(PLACEHOLDER), "nothing was marked as removed: {out}");
assert!(
out.contains(PLACEHOLDER),
"nothing was marked as removed: {out}"
);
out
}
@@ -369,7 +372,10 @@ mod tests {
#[test]
fn a_bearer_token_with_no_keyword_in_front_of_it_still_goes() {
assert_gone("eyJhbGciOiJIUzI1NiJ9", "sending Bearer eyJhbGciOiJIUzI1NiJ9");
assert_gone(
"eyJhbGciOiJIUzI1NiJ9",
"sending Bearer eyJhbGciOiJIUzI1NiJ9",
);
}
#[test]
+1 -4
View File
@@ -72,10 +72,7 @@ pub fn state_dir() -> PathBuf {
if let Some(dir) = STATE_DIR.get() {
return dir.clone();
}
xdg_state_dir(
std::env::var_os("XDG_STATE_HOME"),
std::env::var_os("HOME"),
)
xdg_state_dir(std::env::var_os("XDG_STATE_HOME"), std::env::var_os("HOME"))
}
/// The XDG resolution, as a function of its inputs rather than of the process