[pitboss/grind] deferred session-0036 (20260517T044708Z-e058)

This commit is contained in:
pitboss 2026-05-17 12:41:06 -05:00
parent dc0cff58c7
commit 7dc488fae7
3 changed files with 4 additions and 4 deletions

View file

@ -580,7 +580,7 @@ mod tests {
fn write_and_load_roundtrip() {
let d = with_verdict(make_diag("src/a.py", 1, "py.sqli"), VerifyStatus::Confirmed);
let tmp = tempfile::NamedTempFile::new().unwrap();
write_baseline(tmp.path(), &[d.clone()]).unwrap();
write_baseline(tmp.path(), std::slice::from_ref(&d)).unwrap();
let loaded = load_baseline(tmp.path()).unwrap();
assert_eq!(loaded.len(), 1);
assert_eq!(loaded[0].stable_hash, d.stable_hash);

View file

@ -340,7 +340,7 @@ mod tests {
let d = diag_with_cap("helper.py", 10, Cap::CODE_EXEC);
// Without reach: file-local lookup leaves the finding Unreachable.
let edges = findings_to_edges(&[d.clone()], &surface);
let edges = findings_to_edges(std::slice::from_ref(&d), &surface);
assert!(matches!(edges[0].reach, Reach::Unreachable));
// With reach: transitive caller in `routes.py` lifts to Reachable.

View file

@ -625,10 +625,10 @@ mod tests {
Feasibility::Confirmed,
);
let cfg = ChainSearchConfig::default();
let first = find_chains(&[e.clone()], &surface, cfg);
let first = find_chains(std::slice::from_ref(&e), &surface, cfg);
let first_hashes: Vec<u64> = first.iter().map(|c| c.stable_hash).collect();
for _ in 0..9 {
let again = find_chains(&[e.clone()], &surface, cfg);
let again = find_chains(std::slice::from_ref(&e), &surface, cfg);
let again_hashes: Vec<u64> = again.iter().map(|c| c.stable_hash).collect();
assert_eq!(again_hashes, first_hashes);
}