Type Alias assert_cmd::output::OutputResult

source ·
pub type OutputResult = Result<Output, OutputError>;
Expand description

Output represented as a Result.

Generally produced by OutputOkExt.

§Examples

use assert_cmd::prelude::*;

use std::process::Command;

let result = Command::new("echo")
    .args(&["42"])
    .ok();
assert!(result.is_ok());

Aliased Type§

enum OutputResult {
    Ok(Output),
    Err(OutputError),
}

Variants§

§1.0.0

Ok(Output)

Contains the success value

§1.0.0

Err(OutputError)

Contains the error value