MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / ParseScriptError

Function ParseScriptError

src/test/script_tests.cpp:114–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114static ScriptError_t ParseScriptError(const std::string &name)
115{
116 for (unsigned int i=0; i<ARRAYLEN(script_errors); ++i)
117 if (script_errors[i].name == name)
118 return script_errors[i].err;
119 BOOST_ERROR("Unknown scripterror \"" << name << "\" in test description");
120 return SCRIPT_ERR_UNKNOWN_ERROR;
121}
122
123BOOST_FIXTURE_TEST_SUITE(script_tests, BasicTestingSetup)
124

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected