test_match

Macro test_match 

Source
macro_rules! test_match {
    (
    $($target:tt)*
) => { ... };
}
Expand description

Wraps a function that takes nothing and returns something, failing the test if the result is not Ok. Shortcut for should_match!.

// This macro invocation:
test_match! { ... }
// Is equivalent to:
should_match! { #[test] ... }