diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-04-04 01:18:58 +0800 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-04-04 01:16:19 +0800 |
commit | fa0189955ab0f458bac81f534cbd626e1b0ad2c1 (patch) | |
tree | f8f85aecd59f4d5401c49b866dd0cc1e6fcdac49 /src/test/fuzz/descriptor_parse.cpp | |
parent | f0d6487e290761a4fb03798240a351b5fddfdb38 (diff) |
fuzz: Extend descriptor fuzz test
Diffstat (limited to 'src/test/fuzz/descriptor_parse.cpp')
-rw-r--r-- | src/test/fuzz/descriptor_parse.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/fuzz/descriptor_parse.cpp b/src/test/fuzz/descriptor_parse.cpp index a0ef08cca6..1e0abe94f8 100644 --- a/src/test/fuzz/descriptor_parse.cpp +++ b/src/test/fuzz/descriptor_parse.cpp @@ -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(); + } } } |