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
+64 -64
View File
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -515,7 +515,9 @@ mod tests {
// The whole reason the `.rs` exception exists: redacting these to // The whole reason the `.rs` exception exists: redacting these to
// `<path>` leaves a backtrace of nothing but symbol names, and the // `<path>` leaves a backtrace of nothing but symbol names, and the
// line number is a fact about this codebase rather than about anyone. // 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("library.rs:1270:9"), "{r}");
assert!(r.contains("dr_ui::library::run_scan"), "{r}"); assert!(r.contains("dr_ui::library::run_scan"), "{r}");
assert!(!r.contains("ui/dr-ui/src"), "{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)) let current = fs::metadata(dir.join(FILE_NAME))
.expect("a current log") .expect("a current log")
.len(); .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"))) let previous = fs::metadata(dir.join(format!("{FILE_NAME}.1")))
.expect("a rotated log, since 500 lines cannot fit in 4 KiB") .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), !out.contains(secret),
"redaction left the credential behind\n in: {line}\n out: {out}" "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 out
} }
@@ -369,7 +372,10 @@ mod tests {
#[test] #[test]
fn a_bearer_token_with_no_keyword_in_front_of_it_still_goes() { 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] #[test]
+1 -4
View File
@@ -72,10 +72,7 @@ pub fn state_dir() -> PathBuf {
if let Some(dir) = STATE_DIR.get() { if let Some(dir) = STATE_DIR.get() {
return dir.clone(); return dir.clone();
} }
xdg_state_dir( xdg_state_dir(std::env::var_os("XDG_STATE_HOME"), std::env::var_os("HOME"))
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 /// The XDG resolution, as a function of its inputs rather than of the process
+11 -8
View File
@@ -46,14 +46,17 @@ use slint::ComponentHandle;
use crate::library_ui::LibraryController; use crate::library_ui::LibraryController;
use crate::AppWindow; use crate::AppWindow;
/// What the open question is about. // What the open question is about.
/// //
/// A thread-local rather than a field on `LibraryController`, because the // A thread-local rather than a field on `LibraryController`, because the
/// question is asked *before* that controller has a catalog and is answered by // question is asked *before* that controller has a catalog and is answered by
/// callbacks wired at startup. Thread-local is sound here for the same reason // callbacks wired at startup. Thread-local is sound here for the same reason
/// [`crate::memory`]'s registry is: everything below runs on the Slint event // `crate::memory`'s registry is: everything below runs on the Slint event
/// loop thread, which is the only thread that has an `AppWindow` to show it // loop thread, which is the only thread that has an `AppWindow` to show it
/// on. // on.
//
// Plain `//` rather than `///`: rustdoc does not document a macro invocation,
// and `-D warnings` rejects a doc comment that can never be rendered.
thread_local! { thread_local! {
static PENDING: RefCell<Option<Pending>> = const { RefCell::new(None) }; static PENDING: RefCell<Option<Pending>> = const { RefCell::new(None) };
} }