commit | 81ca080ab40ad574ff6c5e0bece33bb40c2c3a50 | [log] [tgz] |
---|---|---|
author | Pierre-Clément Tosi <ptosi@google.com> | Tue Feb 14 10:41:38 2023 +0000 |
committer | Pierre-Clément Tosi <ptosi@google.com> | Tue Feb 14 11:02:59 2023 +0000 |
tree | 9438382501f9261347caf34c9f380f5e58ad6943 | |
parent | e8ec039ea3f811b066769622caaba266821aeb30 [diff] |
pvmfw_avb: Derive Eq for VerifiedBootData Derive the trait, which can be used in tests assert_eq! and fill force a programmer adding a new field to the structure to cover it in tests: error[E0063]: missing field `X` in initializer of `pvmfw_avb::VerifiedBootData<'_>` On mismatch, assert_eq prints out the debug representation of the inputs: STACKTRACE: ---- TEST_NAME stderr ---- thread 'main' panicked at 'assertion failed: `(left == right)` left: `VerifiedBootData { debug_level: None, kernel_digest: [...], initrd_digest: None, }`, right: `VerifiedBootData { debug_level: None, kernel_digest: [...], initrd_digest: Some([...]) }`, packages/modules/Virtualization/pvmfw/avb/tests/api_test.rs:71:5 Note: no functional change intended. Test: atest libpvmfw_avb.integration_test Change-Id: Ia9b7046ff24ebffe6d15a6cc936a3ac2e8a5d4b9
This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.