Expand description
Functions and types useful for writing tests.
Functionsยง
- assert_
interface_ dependencies - Asserts that the WIT type dependencies of the
Interface
are theexpected_types
. - assert_
interface_ functions - Asserts that the function declarations of the
Interface
are theexpected_declarations
. - test_
flattening_ roundtrip - 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_
memory_ roundtrip - Test storing an instance of
T
to memory, checking that the instance can be loaded from those bytes.