Digest content fix-up: the read_domain tests pass the names

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-20 23:10:22 +01:00
commit 04c0c08df3

View file

@ -218,10 +218,10 @@ fn k23_a_failed_read_fails_whole_and_project_leaves_the_section_out_and_reports_
read(&|selection: &Selection| self.0.query(selection), &self.0.instance().0, &Down, since, now)
}
}
let (lines, report) = crate::projection::read_domain(Some(&Live(&mind)), None, now());
let (lines, report) = crate::projection::read_domain(Some(&Live(&mind)), None, now(), &names());
assert!(lines.is_empty(), "{lines:?}");
assert_eq!((report["read"].clone(), report["why"].as_str().is_some_and(|why| why.contains("forge"))), (json!(false), true), "{report}");
let (lines, report) = crate::projection::read_domain(None, None, now());
let (lines, report) = crate::projection::read_domain(None, None, now(), &names());
assert!(lines.is_empty() && report["read"] == json!(false), "{report}");
}