assert_io_eq

Macro assert_io_eq 

Source
macro_rules! assert_io_eq {
    ($io_stats:expr, $field:ident, $expected:expr) => { ... };
    ($io_stats:expr, $field:ident, $expected:expr, $($arg:tt)+) => { ... };
}
Expand description

Assertions on IO statistics. assert_io_eq!(io_stats, read_iops, 1); assert_io_eq!(io_stats, write_iops, 0, “should be no writes”); assert_io_eq!(io_stats, num_hops, 1, “should be just {}”, “one hop”);