1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
extern crate failure;
extern crate itertools;
extern crate regex;
extern crate serde;
extern crate serde_json;
extern crate sorted_json;

mod assert_snapshot;
mod destination;
mod function;
mod scrub;

pub use assert_snapshot::assert_snapshot_;

#[macro_export]
macro_rules! assert_snapshot {
    ( $data:expr, $scrubs:expr ) => {{
        assert_snapshot::assert_snapshot_(file!(), line!(), "", $data, $scrubs).unwrap()
    }};
}

//    ( $extra:expr, $data:expr, $scrubs:expr ) => {
//        {
//            assert_snapshot::assert_snapshot(file!(), line()!, $expr, $data, $scrubs)
//        }
//    };