test_toolbox/
lib.rs

1#![deny(clippy::all)]
2#![deny(clippy::pedantic)]
3#![deny(clippy::nursery)]
4#![deny(clippy::cargo)]
5#![deny(missing_docs)]
6// ==============================================================
7#![allow(clippy::module_name_repetitions)]
8#![allow(clippy::items_after_statements)]
9// ==============================================================
10#![doc(html_root_url = "https://docs.rs/test-toolbox/0.5.0")]
11
12//! Utility library of helper macros for working with unit tests.
13//!
14//! ## Macros
15//!
16//! * `actual!` - declare actual variable with differing `debug` and `release` syntax
17//! * `expect!` - declare expected variable with differing `debug` and `release` values
18//! * `capture!` - captures `stdout` and `stderr` for testing output
19
20#[cfg(feature = "actual")]
21mod actual;
22#[cfg(feature = "capture")]
23mod capture;
24#[cfg(feature = "expected")]
25mod expect;
26
27#[cfg(feature = "capture")]
28#[doc(hidden)]
29pub use gag;
30
31#[cfg(any(feature = "actual", feature = "expected"))]
32#[doc(hidden)]
33pub use cfg_if;
34
35#[cfg(test)]
36mod tests;