[][src]Function sentry::test::with_captured_events

pub fn with_captured_events<F>(f: F) -> Vec<Event<'static>> where
    F: FnOnce(), 

Runs some code with the default test hub and returns the captured events.

This is a shortcut for creating a testable hub with default options and to call run_and_capture_events on it.