test_some

Macro test_some 

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

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

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