File: macro_imports.rs

package info (click to toggle)
rust-tracing 0.1.40-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 684 kB
  • sloc: makefile: 2
file content (23 lines) | stat: -rw-r--r-- 631 bytes parent folder | download | duplicates (57)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use tracing::Level;

#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
#[test]
fn prefixed_span_macros() {
    tracing::span!(Level::DEBUG, "foo");
    tracing::trace_span!("foo");
    tracing::debug_span!("foo");
    tracing::info_span!("foo");
    tracing::warn_span!("foo");
    tracing::error_span!("foo");
}

#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
#[test]
fn prefixed_event_macros() {
    tracing::event!(Level::DEBUG, "foo");
    tracing::trace!("foo");
    tracing::debug!("foo");
    tracing::info!("foo");
    tracing::warn!("foo");
    tracing::error!("foo");
}