Debian Codegraph @

third_party/rust/tracing/tests/macro_imports.rs

raw
1 use tracing::Level;
2
3 #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
4 #[test]
5 fn prefixed_span_macros() {
6 tracing::span!(Level::DEBUG, "foo");
7 tracing::trace_span!("foo");
8 tracing::debug_span!("foo");
9 tracing::info_span!("foo");
10 tracing::warn_span!("foo");
11 tracing::error_span!("foo");
12 }
13
14 #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
15 #[test]
16 fn prefixed_event_macros() {
17 tracing::event!(Level::DEBUG, "foo");
18 tracing::trace!("foo");
19 tracing::debug!("foo");
20 tracing::info!("foo");
21 tracing::warn!("foo");
22 tracing::error!("foo");
23 }