23 "echo the passed string(s)",
32 return request.params.
write(0, 0);
58 QVERIFY(result==
"main");
59 QVERIFY(filtered ==
"getblockchaininfo()[chain]");
67 QVERIFY(result.substr(0,1) ==
"{");
70 QVERIFY(result.substr(0,1) ==
"{");
73 QVERIFY(result.substr(0,1) ==
"{");
76 QVERIFY(result ==
"null");
80 QVERIFY(result == result2);
82 QVERIFY(result == result2);
85 QVERIFY(result ==
"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b");
86 QVERIFY(filtered ==
"getblock(getbestblockhash())[tx][0]");
89 QVERIFY(filtered ==
"importprivkey(…)");
91 QVERIFY(filtered ==
"signmessagewithprivkey(…)");
93 QVERIFY(filtered ==
"signmessagewithprivkey(…)");
95 QVERIFY(filtered ==
"signrawtransactionwithkey(…)");
97 QVERIFY(filtered ==
"walletpassphrase(…)");
99 QVERIFY(filtered ==
"walletpassphrasechange(…)");
101 QVERIFY(filtered ==
"help(encryptwallet(…))");
103 QVERIFY(filtered ==
"help(importprivkey(…))");
105 QVERIFY(filtered ==
"help(importprivkey(…))");
107 QVERIFY(filtered ==
"help(importprivkey(…), walletpassphrase(…))");
110 QVERIFY(result ==
"[]");
112 QVERIFY(result ==
"[\"\"]");
114 QVERIFY(result ==
"[\"\"]");
116 QVERIFY(result ==
"[\"\",\"abc\"]");
118 QVERIFY(result ==
"[\"abc\",\"\",\"abc\"]");
120 QVERIFY(result ==
"[\"abc\",\"abc\"]");
122 QVERIFY(result ==
"[\"abc\",\"abc\"]");
124 QVERIFY(result ==
"[\"abc\"]");
126 QVERIFY(result ==
"[\"abc\"]");
128 QVERIFY(result ==
"[\"abc\",\"cba\"]");
131#if (QT_VERSION >= QT_VERSION_CHECK(6, 3, 0))
132#undef QVERIFY_EXCEPTION_THROWN
133#define QVERIFY_EXCEPTION_THROWN(expression, exceptiontype) QVERIFY_THROWS_EXCEPTION(exceptiontype, expression)
void appendCommand(const std::string &name, const CRPCCommand *pcmd)
Appends a CRPCCommand to the dispatch table.
static bool RPCParseCommandLine(interfaces::Node *node, std::string &strResult, const std::string &strCommand, bool fExecute, std::string *const pstrFilteredOut=nullptr, const WalletModel *wallet_model=nullptr)
Split shell command line into a list of arguments and optionally execute the command(s).
static bool RPCExecuteCommandLine(interfaces::Node &node, std::string &strResult, const std::string &strCommand, std::string *const pstrFilteredOut=nullptr, const WalletModel *wallet_model=nullptr)
interfaces::Node & m_node
std::string write(unsigned int prettyIndent=0, unsigned int indentLevel=0) const
virtual void setContext(node::NodeContext *context)
#define QVERIFY_EXCEPTION_THROWN(expression, exceptiontype)
static RPCHelpMan rpcNestedTest_rpc()
static const CRPCCommand vRPCCommands[]
void SetRPCWarmupFinished()
bool RPCIsInWarmup(std::string *outStatus)
@ OMITTED
Optional argument for which the default value is omitted from help text for one of two reasons:
@ ANY
Special type to disable type checks (for testing only)
Testing setup that configures a complete environment.