Skip to content

Commit 648ba9e

Browse files
committed
internal: test LoggerDb to avoid dead code warnings
1 parent 8f000c8 commit 648ba9e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

crates/query-group-macro/tests/logger_db.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,16 @@ impl LoggerDb {
4343
expected.assert_eq(&format!("{:#?}", logs));
4444
}
4545
}
46+
47+
/// Test the logger database.
48+
///
49+
/// This test isn't very interesting, but it *does* remove a dead code warning.
50+
#[test]
51+
fn test_logger_db() {
52+
let db = LoggerDb::default();
53+
db.push_log("test".to_string());
54+
db.assert_logs(expect_test::expect![r#"
55+
[
56+
"test",
57+
]"#]);
58+
}

0 commit comments

Comments
 (0)