Codegen tests¶
Test cases for the codegen crate (Network-config codegen (FEAT_0082)). Per-crate,
snapshot-based. Live under crates/ethercat-netcfg-codegen/tests/.
Golden-file test: codegen over the WAGO fixture produces a
|
For each channel binding in the fixture, the generated module exposes
a named |
A three-device fixture generates addresses |
Property test over fixtures: a TxPDO-only device generates
|
Codegen runs twice over the same fixture and pinned ESI inputs; the two emitted modules are byte-identical. A variant reorders unrelated YAML keys and confirms the output is unchanged. No timestamp or hash-map iteration order leaks into the file. |