1pub use sample_test_macros::sample_test;
30
31pub use quickcheck::{Arbitrary, Gen};
32pub use sample_std::{Random, Sample};
33
34pub mod tester;
35
36pub use tester::{SampleTest, TestResult, Testable};
37
38#[cfg(feature = "use_logging")]
39pub fn env_logger_init() -> Result<(), log::SetLoggerError> {
40 env_logger::try_init()
41}
42#[cfg(feature = "use_logging")]
43macro_rules! error {
44 ($($tt:tt)*) => {
45 log::error!($($tt)*)
46 };
47}
48#[cfg(feature = "use_logging")]
49macro_rules! info {
50 ($($tt:tt)*) => {
51 log::info!($($tt)*)
52 };
53}
54#[cfg(feature = "use_logging")]
55macro_rules! trace {
56 ($($tt:tt)*) => {
57 log::trace!($($tt)*)
58 };
59}
60
61#[cfg(not(feature = "use_logging"))]
62pub fn env_logger_init() {}
63#[cfg(not(feature = "use_logging"))]
64macro_rules! error {
65 ($($_ignore:tt)*) => {
66 ()
67 };
68}
69#[cfg(not(feature = "use_logging"))]
70macro_rules! info {
71 ($($_ignore:tt)*) => {
72 ()
73 };
74}
75#[cfg(not(feature = "use_logging"))]
76macro_rules! trace {
77 ($($_ignore:tt)*) => {
78 ()
79 };
80}
81
82pub(crate) use error;
83pub(crate) use info;
84pub(crate) use trace;