2018-10-10 22:56:56 +02:00
|
|
|
mod tester;
|
|
|
|
|
2019-03-08 11:48:22 +01:00
|
|
|
use crate::tester::BatTester;
|
2018-10-10 22:56:56 +02:00
|
|
|
|
|
|
|
macro_rules! snapshot_tests {
|
2018-10-19 21:10:32 +02:00
|
|
|
($($test_name: ident: $style: expr,)*) => {
|
2018-10-10 22:56:56 +02:00
|
|
|
$(
|
|
|
|
#[test]
|
|
|
|
fn $test_name() {
|
|
|
|
let bat_tester = BatTester::new();
|
2018-10-19 21:10:32 +02:00
|
|
|
bat_tester.test_snapshot(stringify!($test_name), $style);
|
2018-10-10 22:56:56 +02:00
|
|
|
}
|
|
|
|
)*
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
snapshot_tests! {
|
2018-10-19 21:10:32 +02:00
|
|
|
changes: "changes",
|
|
|
|
grid: "grid",
|
|
|
|
header: "header",
|
|
|
|
numbers: "numbers",
|
|
|
|
changes_grid: "changes,grid",
|
|
|
|
changes_header: "changes,header",
|
|
|
|
changes_numbers: "changes,numbers",
|
|
|
|
grid_header: "grid,header",
|
|
|
|
grid_numbers: "grid,numbers",
|
|
|
|
header_numbers: "header,numbers",
|
|
|
|
changes_grid_header: "changes,grid,header",
|
|
|
|
changes_grid_numbers: "changes,grid,numbers",
|
|
|
|
changes_header_numbers: "changes,header,numbers",
|
|
|
|
grid_header_numbers: "grid,header,numbers",
|
|
|
|
changes_grid_header_numbers: "changes,grid,header,numbers",
|
|
|
|
full: "full",
|
|
|
|
plain: "plain",
|
2018-10-10 22:56:56 +02:00
|
|
|
}
|