Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 262d096a authored by Martin Geisler's avatar Martin Geisler
Browse files

pdl: enable snapshot testing via ‘cargo test’

This adds a minimal infrastructure needed to support snapshot testing
with Cargo. In short, we read a snapshot file with known-good content
and compare this to the generated output. If they differ, we
optionally override the snapshot with the generated output. This will
allow us to easily update the output as we evolve the code generator.

This the strategy described in go/pdl-rust-backend-testing-strategy.

Test: atest pdl_inline_tests && cargo test
Change-Id: I82078f77168ee7141de71ff57935c1fb12d09364
parent 2acc00a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment