Type Alias assert_cmd::assert::AssertResult

source ·
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());

Aliased Type§

enum AssertResult {
    Ok(Assert),
    Err(AssertError),
}

Variants§

§1.0.0

Ok(Assert)

Contains the success value

§1.0.0

Err(AssertError)

Contains the error value