MCPcopy Create free account
hub / github.com/ElementsProject/elements / FUZZ_TARGET_INIT

Function FUZZ_TARGET_INIT

src/test/fuzz/descriptor_parse.cpp:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17FUZZ_TARGET_INIT(descriptor_parse, initialize_descriptor_parse)
18{
19 const std::string descriptor(buffer.begin(), buffer.end());
20 FlatSigningProvider signing_provider;
21 std::string error;
22 for (const bool require_checksum : {true, false}) {
23 const auto desc = Parse(descriptor, signing_provider, error, require_checksum);
24 if (desc) {
25 (void)desc->ToString();
26 (void)desc->IsRange();
27 (void)desc->IsSolvable();
28 }
29 }
30}

Callers

nothing calls this directly

Calls 6

ParseFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
ToStringMethod · 0.45
IsRangeMethod · 0.45
IsSolvableMethod · 0.45

Tested by

no test coverage detected