Trait cli_test_dir::ExpectStatus
source · pub trait ExpectStatus {
// Required methods
fn expect_success(self) -> Output;
fn expect_failure(self) -> Output;
}
Expand description
We define expect_status
on quite a few related types to support
different calling patterns.
Required Methods§
sourcefn expect_success(self) -> Output
fn expect_success(self) -> Output
Expect the child process to succeed, and return a
std::process::Output
object with its output.
sourcefn expect_failure(self) -> Output
fn expect_failure(self) -> Output
Expect the child process to fail, and return std::process::Output
object with its output.