Skip to main content

reset

Function reset 

Source
pub fn reset()
Expand description

Zero every counter. Test-support only.

The counters are process-global AtomicU64s, so a test that asserts on a count must reset first AND must not run concurrently with another test that evaluates. Prefer asserting a delta you captured yourself.