Skip to main content

Module testing

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::MotionValue returns its target and is not moving, a super::super::Presence is 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 settled scope 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.