Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/rpcnestedtests.cpp
Show All 22 Lines | static UniValue rpcNestedTest_rpc(const Config &config, | ||||
const JSONRPCRequest &request) { | const JSONRPCRequest &request) { | ||||
if (request.fHelp) { | if (request.fHelp) { | ||||
return "help message"; | return "help message"; | ||||
} | } | ||||
return request.params.write(0, 0); | return request.params.write(0, 0); | ||||
} | } | ||||
static const ContextFreeRPCCommand vRPCCommands[] = { | static const ContextFreeRPCCommand vRPCCommands[] = { | ||||
{"test", "rpcNestedTest", rpcNestedTest_rpc, true, {}}, | {"test", "rpcNestedTest", &rpcNestedTest_rpc, {}}, | ||||
}; | }; | ||||
void RPCNestedTests::rpcNestedTests() { | void RPCNestedTests::rpcNestedTests() { | ||||
UniValue jsonRPCError; | UniValue jsonRPCError; | ||||
// Do some test setup could be moved to a more generic place when we add | // Do some test setup could be moved to a more generic place when we add | ||||
// more tests on QT level | // more tests on QT level | ||||
const Config &config = GetConfig(); | const Config &config = GetConfig(); | ||||
▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines |