Module testing
Expand description
The settled clock, for captures and tests.
Structs§
- Frozen
- While held, every motion on this thread reads at the instant it was taken, as within one frame. Never for production frames.
- Settled
- While held, every motion on this thread reads as arrived: a
super::super::MotionValuereturns its target and is not moving, asuper::super::Presenceis fully open or fully closed. Dropping it restores the running clock. Never for production frames.
Functions§
- frozen
- Stop the clock motions on this thread read until the guard drops: a test that checks a motion began sees it at its start, however long a loaded machine takes between starting it and looking.
- is_
settled - Whether a
settledscope is open on this thread. - settled
- Read every motion on this thread at its end until the guard drops: a single-frame test or a golden capture sees what it opened at rest.