pub trait OutputStream<R>: DerefMut<Target = BufReader<R>>where
    R: Read,
{ fn expect_line(&mut self, expected_line: &str) { ... } fn expect_regex<T>(&mut self, regex: T)
    where
        T: Into<Regex>
, { ... } }
Expand description

Methods common to output streams

Provided Methods§

Read a line and ensure it matches the expected value.

Panics if it is not the expected value.

Read a line and test it against the given regex.

Panics if the line does not match the regex.

Implementors§