Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--
2683
-rw-r--r--
648
-rw-r--r--
92
-rw-r--r--
788
: Log, } impl TestContextImpl { #[track_caller] pub(crate) fn assert_log(&self, expected_log: &[&str]) { let expected_text = &format!("{expected_log:#?}"); let actual_text = &format!("{:#?}", self.log().take()); if expected_text == actual_text { return; } #[allow(clippy::print_stdout)] for diff in dissimilar::diff(expected_text, actual_text) { match diff { dissimilar::Chunk::Delete(l) => println!("-{l}"), dissimilar::Chunk::Equal(l) => println!(" {l}"), dissimilar::Chunk::Insert(r) => println!("+{r}"), } } panic!("incorrect log results"); } } impl TestContext for TestContextImpl { fn clock(&self) -> &Counter { &self.clock } fn log(&self) -> &Log { &self.log } } impl ra_salsa::Database for TestContextImpl {}