clitest/
common.rs

1
2#[macro_export]
3macro_rules! fail {
4    ($templ:literal $(, $args:expr)*) => {
5        {
6            let msg = format!($templ, $($args, )*);
7            eprintln!("failed at {}:{} - {}", file!(), line!(), msg);
8            return Err(msg)
9        }
10    }
11}
12
13pub use fail;