assertables::assert_program_args

Module assert_program_args_stderr_string_is_match

source
Expand description

Assert a command (built with program and args) stderr string is a match to a regex.

Pseudocode:
(program1 + args1 ⇒ command ⇒ stderr ⇒ string) is match (expr into string)

§Example

use assertables::*;
use regex::Regex;

let program = "bin/printf-stderr";
let args = ["%s", "alfa"];
let matcher = Regex::new(r"lf").unwrap();
assert_program_args_stderr_string_is_match!(&program, &args, &matcher);

§Module macros