Trait abscissa_core::testing::process::OutputStream
source · 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§
sourcefn expect_line(&mut self, expected_line: &str)
fn expect_line(&mut self, expected_line: &str)
Read a line and ensure it matches the expected value.
Panics if it is not the expected value.
sourcefn expect_regex<T>(&mut self, regex: T)where
T: Into<Regex>,
fn expect_regex<T>(&mut self, regex: T)where
T: Into<Regex>,
Read a line and test it against the given regex.
Panics if the line does not match the regex.