#![doc = include_str!("../README.md")]
pub use cfg_if::cfg_if as CFG_IF;
mod message;
mod assert;
mod annotate;
mod tool;
#[cfg(debug_assertions)]
use std::sync::atomic::{AtomicBool, Ordering};
#[cfg(debug_assertions)]
#[doc(hidden)]
static TESTING: AtomicBool = AtomicBool::new(false);
#[doc(hidden)]
pub fn set_testing() {
#[cfg(debug_assertions)]
TESTING.store(true, Ordering::Release);
}
#[doc(hidden)]
#[mutants::skip]
#[inline]
pub fn get_testing() -> bool {
CFG_IF! {
if #[cfg(debug_assertions)] {
TESTING.load(Ordering::Acquire)
} else {
false
}
}
}