usearbitrary::Arbitrary;usearbitrary::Unstructured;usebeancount_types::MetadataKey;usebeancount_types::MetadataValue;#[test]fnarbitrary_key(){letmut u =Unstructured::new(b"someverylongandmildlyrandominput");insta::assert_debug_snapshot!(MetadataKey::arbitrary(&mut u));}#[test]fnarbitrary_values(){constINPUTS:&[&[u8]]=&[b"\0123",b"anotherrandominput",b"\x02randominput"];insta::assert_debug_snapshot!(INPUTS
.iter()
.map(|&input|{letmut u =Unstructured::new(input);MetadataValue::arbitrary(&mut u)})
.collect::<Vec<_>>());}