Skip to content

Commit

Permalink
refactor: remove unused macro
Browse files Browse the repository at this point in the history
Closes pjd#45.
  • Loading branch information
saidsay-so committed Jul 9, 2022
1 parent 6049965 commit d422992
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions rust/src/runner/mod.rs
Original file line number Diff line number Diff line change
@@ -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(())
}
};
}

0 comments on commit d422992

Please sign in to comment.