Regenerate the matrix over the third wave
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
+64
-64
File diff suppressed because one or more lines are too long
@@ -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}");
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -46,14 +46,17 @@ use slint::ComponentHandle;
|
||||
use crate::library_ui::LibraryController;
|
||||
use crate::AppWindow;
|
||||
|
||||
/// What the open question is about.
|
||||
///
|
||||
/// A thread-local rather than a field on `LibraryController`, because the
|
||||
/// 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
|
||||
/// [`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
|
||||
/// on.
|
||||
// What the open question is about.
|
||||
//
|
||||
// A thread-local rather than a field on `LibraryController`, because the
|
||||
// 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
|
||||
// `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
|
||||
// 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! {
|
||||
static PENDING: RefCell<Option<Pending>> = const { RefCell::new(None) };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user