kithara-test-utils 0.0.1-alpha4

kithara test runtime: probe/hang/mock helpers (no-op in release).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Probe event capture helper for integration tests.
//!
//! Records every `tracing::event!` whose target ends with `_probe` into a
//! process-wide `Vec` so a test can snapshot the sequence and assert on it.
//! See the crate `CONTEXT.md` "Probe capture" for the subscriber and
//! activation contract.

mod event;
mod layer;
mod recorder;

pub use event::ProbeEvent;
pub use layer::probe_layer;
pub use recorder::{Recorder, install};