Cover State Reset scope in enum shape authority
This commit is contained in:
parent
91d88336df
commit
6fcadf7547
1 changed files with 6 additions and 2 deletions
|
|
@ -21,6 +21,10 @@ macro_rules! enum_corpus {
|
|||
}
|
||||
|
||||
fn lifecycle_corpus(digest: &mut Sha256) {
|
||||
enum_corpus!(digest, StateResetScopeV1, {
|
||||
StateResetScopeV1::All => StateResetScopeV1::All,
|
||||
StateResetScopeV1::Selected(_) => StateResetScopeV1::Selected(b"/usr".to_vec()),
|
||||
});
|
||||
enum_corpus!(digest, DurableDecision, {
|
||||
DurableDecision::None => DurableDecision::None,
|
||||
DurableDecision::Preparing => DurableDecision::Preparing,
|
||||
|
|
@ -310,8 +314,8 @@ fn every_serialized_enum_variant_has_fixed_shape_evidence() {
|
|||
assert_eq!(
|
||||
digest.finalize().as_slice(),
|
||||
[
|
||||
91, 180, 216, 8, 22, 13, 86, 141, 24, 220, 203, 225, 25, 175, 149, 91, 254, 88, 90,
|
||||
142, 176, 169, 45, 94, 24, 209, 70, 185, 116, 120, 58, 128,
|
||||
199, 150, 218, 48, 172, 14, 153, 234, 245, 198, 178, 249, 47, 35, 217, 83, 28, 188,
|
||||
123, 152, 3, 15, 150, 61, 79, 255, 244, 107, 132, 27, 167, 123,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue