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

Function CheckUnparsable

src/test/descriptor_tests.cpp:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace {
19
20void CheckUnparsable(const std::string& prv, const std::string& pub, const std::string& expected_error)
21{
22 FlatSigningProvider keys_priv, keys_pub;
23 std::string error;
24 auto parse_priv = Parse(prv, keys_priv, error);
25 auto parse_pub = Parse(pub, keys_pub, error);
26 BOOST_CHECK_MESSAGE(!parse_priv, prv);
27 BOOST_CHECK_MESSAGE(!parse_pub, pub);
28 BOOST_CHECK_EQUAL(error, expected_error);
29}
30
31/** Check that the script is inferred as non-standard */
32void CheckInferRaw(const CScript& script)

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

ParseFunction · 0.85

Tested by

no test coverage detected