test_try

Attribute Macro test_try 

Source
#[test_try]
Expand description

Alternative to the #[test] macro.

  • Use ? to return errors without specifying a return type or ending the test with Ok(()).
  • On error, the test prints out a report including the chain of source errors.