When a function errors in a test, I use this pattern:
if let Err(err) = func() {
    panic!("got error on export: {:?}", err);
}
Is there a macro for asserting an Ok result and get the Err printed otherwise?
When a function errors in a test, I use this pattern:
if let Err(err) = func() {
    panic!("got error on export: {:?}", err);
}
Is there a macro for asserting an Ok result and get the Err printed otherwise?