Trait zebra_test::command::CommandExt

source ·
pub trait CommandExt {
    // Required methods
    fn status2(&mut self) -> Result<TestStatus, Report>;
    fn output2(&mut self) -> Result<TestOutput<NoDir>, Report>;
    fn spawn2<T>(
        &mut self,
        dir: T,
        command_path: impl ToString,
    ) -> Result<TestChild<T>, Report>;
}
Expand description

Wrappers for Command methods to integrate with zebra_test.

Required Methods§

source

fn status2(&mut self) -> Result<TestStatus, Report>

wrapper for status fn on Command that constructs informative error reports

source

fn output2(&mut self) -> Result<TestOutput<NoDir>, Report>

wrapper for output fn on Command that constructs informative error reports

source

fn spawn2<T>( &mut self, dir: T, command_path: impl ToString, ) -> Result<TestChild<T>, Report>

wrapper for spawn fn on Command that constructs informative error reports using the original command_path

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl CommandExt for Command

source§

fn status2(&mut self) -> Result<TestStatus, Report>

wrapper for status fn on Command that constructs informative error reports

source§

fn output2(&mut self) -> Result<TestOutput<NoDir>, Report>

wrapper for output fn on Command that constructs informative error reports

source§

fn spawn2<T>( &mut self, dir: T, command_path: impl ToString, ) -> Result<TestChild<T>, Report>

wrapper for spawn fn on Command that constructs informative error reports using the original command_path

Implementors§