Skip to main content

Module test_support

Module test_support 

Source
Expand description

Shared test helpers for constructing MIG schema test fixtures.

Available to both unit tests (#[cfg(test)] modules) and integration tests.

Functions§

make_mig_group
Create a minimal MigSegmentGroup for testing.
make_mig_group_with_variant
Create a MigSegmentGroup with a variant code for testing variant-aware assembly.
make_mig_segment
Create a minimal MigSegment for testing, with only the id set meaningfully.
make_mig_segment_numbered
Create a MigSegment with a MIG Number attribute for testing mig_number assignment.