Skip to main content

capture

Function capture 

Source
pub fn capture() -> Captured
Expand description

Install the fake host and hand back a handle on it.

The level starts at Warn, like a plain run; Captured::trace and friends change it. Whatever was recorded before is dropped, so a test starts from an empty list.