Type Definition assert_cmd::assert::AssertResult[][src]

pub type AssertResult = Result<Assert, AssertError>;
Expand description

Assert represented as a Result.

Produced by the try_ variants the Assert methods.

Example

use assert_cmd::prelude::*;

use std::process::Command;

let result = Command::new("echo")
    .assert()
    .try_success();
assert!(result.is_ok());