zebra_test::command

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§