| 111 | } |
| 112 | |
| 113 | static ScriptError_t ParseScriptError(const std::string& name) |
| 114 | { |
| 115 | for (const auto& se : script_errors) |
| 116 | if (se.name == name) |
| 117 | return se.err; |
| 118 | BOOST_ERROR("Unknown scripterror \"" << name << "\" in test description"); |
| 119 | return SCRIPT_ERR_UNKNOWN_ERROR; |
| 120 | } |
| 121 | |
| 122 | struct ScriptTest : BasicTestingSetup { |
| 123 | void DoTest(const CScript& scriptPubKey, const CScript& scriptSig, const CScriptWitness& scriptWitness, script_verify_flags flags, const std::string& message, int scriptError, CAmount nValue = 0) |
no outgoing calls
no test coverage detected