[][src]Trait abscissa_core::testing::prelude::OutputStream

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>
, { ... } }

Methods common to output streams

Provided methods

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.

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.

Loading content...

Implementors

impl OutputStream<ChildStderr> for Stderr[src]

impl OutputStream<ChildStdout> for Stdout[src]

Loading content...