mod runner;
mod test_case;
#[doc(hidden)]
pub mod _internal {
pub use crate::{
runner::{run_tests, TestSuite},
test_case::{Section, TestDesc},
};
pub use maplit::{hashmap, hashset};
use crate::test_case::{SectionId, TestContext};
#[inline]
pub fn is_target(id: SectionId) -> bool {
TestContext::with(|ctx| ctx.is_target_section(id))
}
}
pub use rye_macros::test_case;
#[macro_export]
macro_rules! test_main {
($($test_case:path),*$(,)?) => {
fn main() {
$crate::_internal::run_tests(&[$(&$test_case),*]);
}
};
}