0.1.0-0-pre.4
This commit is contained in:
11
crates/common/game-logging-lib/tests/test_support.rs
Normal file
11
crates/common/game-logging-lib/tests/test_support.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
// file: crates/common/game-logging-lib/tests/test_support.rs
|
||||
// version: 1
|
||||
|
||||
#[test]
|
||||
fn scoped_test_tracing_returns_test_result() {
|
||||
let result = game_logging_lib::with_test_tracing("scoped_test_tracing_returns_test_result", || {
|
||||
tracing::info!(value = 41_u32, "integration test event");
|
||||
return 42_u32;
|
||||
});
|
||||
assert_eq!(result, 42_u32);
|
||||
}
|
||||
Reference in New Issue
Block a user