assert_fs_read_to_string_ge_as_result

Macro assert_fs_read_to_string_ge_as_result 

Source
macro_rules! assert_fs_read_to_string_ge_as_result {
    ($a_path:expr, $b_path:expr $(,)?) => { ... };
}
Expand description

Assert a ::std::fs::read_to_string(path) value is greater than or equal to another.

Pseudocode:
std::fs::read_to_string(a_path) ≥ std::fs::read_to_string(b_path)

  • If true, return Result Ok((a_path_into_string, b_path_into_string)).

  • 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