Skip to main content

Module testing

Module testing 

Source
Expand description

Shared test-context constructors.

Use these helpers instead of hand-rolling local Cx constructors in tests. The two constructors cover structure-only tests and eager-evaluation tests; a test module can route through them 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.