mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
[pitboss/grind] deferred session-0036 (20260517T044708Z-e058)
This commit is contained in:
parent
dc0cff58c7
commit
7dc488fae7
3 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue