MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / HasErrorMsg

Function HasErrorMsg

src/wallet/test/fuzz/coinselection.cpp:80–80  ·  view source on GitHub ↗

Returns true if the result contains an error and the message is not empty

Source from the content-addressed store, hash-verified

78
79// Returns true if the result contains an error and the message is not empty
80static bool HasErrorMsg(const util::Result<SelectionResult>& res) { return !util::ErrorString(res).empty(); }
81
82FUZZ_TARGET(coin_grinder)
83{

Callers 2

FUZZ_TARGETFunction · 0.70

Calls 2

ErrorStringFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected