fuzz: Extend descriptor fuzz test

This commit is contained in:
MarcoFalke 2020-04-04 01:18:58 +08:00
parent f0d6487e29
commit fa0189955a
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -20,6 +20,11 @@ void test_one_input(const std::vector<uint8_t>& buffer)
FlatSigningProvider signing_provider;
std::string error;
for (const bool require_checksum : {true, false}) {
Parse(descriptor, signing_provider, error, require_checksum);
const auto desc = Parse(descriptor, signing_provider, error, require_checksum);
if (desc) {
(void)desc->ToString();
(void)desc->IsRange();
(void)desc->IsSolvable();
}
}
}