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

Skip to content
Commit 2706f845 authored by Martin Geisler's avatar Martin Geisler Committed by Cherrypicker Worker
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
(cherry picked from https://android-review.googlesource.com/q/commit:262d096a0196928b71ffa33dc64fc924505da1be)
Merged-In: I82078f77168ee7141de71ff57935c1fb12d09364
Change-Id: I82078f77168ee7141de71ff57935c1fb12d09364
parent 83517cf8
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