macro_rules! assert_empty {
    ($value:expr $(,)?) => { ... };
    ($value:expr, $($arg:tt)+) => { ... };
}
Expand description

Asserts that the provided value is empty.

Commonly used when asserting pack output in integration tests. Expands to a str::is_empty call and logs the value (in unescaped and escaped form) on failure.

Example

use libcnb_test::assert_empty;

let output = "";
assert_empty!(output);