assert_command_stderr_gt_x_as_result

Macro assert_command_stderr_gt_x_as_result 

Source
macro_rules! assert_command_stderr_gt_x_as_result {
    ($a_command:expr, $b_expr:expr $(,)?) => { ... };
}
Expand description

Assert a command stderr string is greater than an expression.

Pseudocode:
(command ⇒ stderr) = (expr into string)

  • If true, return Result Ok(stderr).

  • Otherwise, return Result Err(message).

This macro is useful for runtime checks, such as checking parameters, or sanitizing inputs, or handling different results in different ways.

§Module macros