Function wtest::should_throw[][src]

pub fn should_throw<R, F: FnOnce() -> Result<R>>(f: F) -> Result<R>
Expand description

Pass only if callback fails either returning error or panicing.