Skip to main content

Module testing

Module testing 

Source
Expand description

Shared test-context constructors.

Almost every crate’s test module hand-rolled the same fn cx() -> Cx. These are the two canonical shapes that duplication collapsed to (OVERLAP6.16); a test helper routes here with use sim_kernel::testing::bare_cx as cx;.

Functions§

bare_cx
A bare evaluation context: the no-op eval policy over the default factory.
eager_cx
An eager evaluation context: the eager eval policy over the default factory.