mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-23 05:07:27 +00:00
track caller to give better line numbers on test errors
This commit is contained in:
parent
dc5ea932ef
commit
0630fb1139
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ pub(crate) struct TestContextImpl {
|
|||
}
|
||||
|
||||
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());
|
||||
|
|
Loading…
Reference in a new issue