pub type AssertResult = Result<Assert, AssertError>;
Assert represented as a Result.
Assert
Result
Produced by the try_ variants the Assert methods.
try_
use assert_cmd::prelude::*; use std::process::Command; let result = Command::new("echo") .assert() .try_success(); assert!(result.is_ok());