Module linera_witty::test
source · Expand description
Functions and types useful for writing tests.
Functions§
- Asserts that the WIT type dependencies of the
Interface
are theexpected_types
. - Asserts that the function declarations of the
Interface
are theexpected_declarations
. - Test lowering an instance of
T
, checking that the resulting flat layout matches the expectedflat_layout
, and check that the instance can be lifted from that flat layout. - Test storing an instance of
T
to memory, checking that the instance can be loaded from those bytes.