macro_rules! assert_command_stderr_gt_as_result {
($a_command:expr, $b_command:expr $(,)?) => { ... };
}Expand description
Assert a command stderr string is greater than another.
Pseudocode:
(a_command ⇒ stderr) = (b_command ⇒ stderr)
-
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.