1 | use tracing::{enabled, event, span, Level}; |
2 | |
3 | #[macro_export ] |
4 | macro_rules! concat { |
5 | () => {}; |
6 | } |
7 | |
8 | #[cfg_attr (target_arch = "wasm32" , wasm_bindgen_test::wasm_bindgen_test)] |
9 | #[test] |
10 | fn span() { |
11 | span!(Level::DEBUG, "foo" ); |
12 | } |
13 | |
14 | #[cfg_attr (target_arch = "wasm32" , wasm_bindgen_test::wasm_bindgen_test)] |
15 | #[test] |
16 | fn event() { |
17 | event!(Level::DEBUG, "foo" ); |
18 | } |
19 | |
20 | #[cfg_attr (target_arch = "wasm32" , wasm_bindgen_test::wasm_bindgen_test)] |
21 | #[test] |
22 | fn enabled() { |
23 | enabled!(Level::DEBUG); |
24 | } |
25 | |