Changeset View
Changeset View
Standalone View
Standalone View
src/test/fuzz/parse_univalue.cpp
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | void test_one_input(const std::vector<uint8_t> &buffer) { | ||||
} catch (const UniValue &) { | } catch (const UniValue &) { | ||||
} catch (const std::runtime_error &) { | } catch (const std::runtime_error &) { | ||||
} | } | ||||
try { | try { | ||||
(void)ParseSighashString(univalue); | (void)ParseSighashString(univalue); | ||||
} catch (const std::runtime_error &) { | } catch (const std::runtime_error &) { | ||||
} | } | ||||
try { | try { | ||||
(void)AmountFromValue(univalue); | [[maybe_unused]] Amount x = univalue; | ||||
} catch (const UniValue &) { | } catch (const UniValue &) { | ||||
} catch (const std::runtime_error &) { | } catch (const std::runtime_error &) { | ||||
} | } | ||||
try { | try { | ||||
FlatSigningProvider provider; | FlatSigningProvider provider; | ||||
(void)EvalDescriptorStringOrObject(univalue, provider); | (void)EvalDescriptorStringOrObject(univalue, provider); | ||||
} catch (const UniValue &) { | } catch (const UniValue &) { | ||||
} catch (const std::runtime_error &) { | } catch (const std::runtime_error &) { | ||||
} | } | ||||
try { | try { | ||||
(void)ParseDescriptorRange(univalue); | (void)ParseDescriptorRange(univalue); | ||||
} catch (const UniValue &) { | } catch (const UniValue &) { | ||||
} catch (const std::runtime_error &) { | } catch (const std::runtime_error &) { | ||||
} | } | ||||
} | } |