[][src]Macro tcp_test::read_assert

macro_rules! read_assert {
    ($resource:expr, $n:expr, $expected:expr) => { ... };
}

Convenience macro for reading and comparing a specific amount of bytes.

Reads a $n number of bytes from $resource and then compares that buffer with $expected. Panics if the buffers are not equal.