pub trait OutputAssertExt {
    fn assert(self) -> Assert;
}
Expand description

Assert the state of an Output.

Examples

use assert_cmd::prelude::*;

use std::process::Command;

let mut cmd = Command::main_binary()
    .unwrap();
cmd.assert()
   .success();

Required Methods§

Wrap with an interface for that provides assertions on the Output.

Examples
use assert_cmd::prelude::*;

use std::process::Command;

let mut cmd = Command::main_binary()
    .unwrap();
cmd.assert()
   .success();

Implementations on Foreign Types§

Implementors§