From d422992149c8bf526fcf6862aa9cf2975bc00559 Mon Sep 17 00:00:00 2001 From: musikid Date: Sat, 9 Jul 2022 23:28:18 +0200 Subject: [PATCH] refactor: remove unused macro Closes #45. --- rust/src/runner/mod.rs | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/rust/src/runner/mod.rs b/rust/src/runner/mod.rs index 7ba5dda8..9efb2ab1 100644 --- a/rust/src/runner/mod.rs +++ b/rust/src/runner/mod.rs @@ -1,24 +1 @@ pub mod context; - -/// Macro which expands to a function which executes the tests. -#[macro_export] -macro_rules! pjdfs_main { - ($( $test:path ),+) => { - fn main() -> anyhow::Result<()> { - for group in &[ $( $test ),+ ] { - for test_case in group.test_cases.iter() { - for test in test_case.tests { - println!( - "{}\t", - format!("{}::{}::{}", group.name, test_case.name, test.name) - ); - let mut context = TestContext::new(); - (test.fun)(&mut context)?; - } - } - } - - Ok(()) - } - }; -}