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.starts_with(
"{"));
70 QVERIFY(result.starts_with(
"{"));
73 QVERIFY(result.starts_with(
"{"));
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 ==
"signmessagewithprivkey(…)");
91 QVERIFY(filtered ==
"signmessagewithprivkey(…)");
93 QVERIFY(filtered ==
"signrawtransactionwithkey(…)");
95 QVERIFY(filtered ==
"walletpassphrase(…)");
97 QVERIFY(filtered ==
"walletpassphrasechange(…)");
99 QVERIFY(filtered ==
"help(encryptwallet(…))");
102 QVERIFY(result ==
"[]");
104 QVERIFY(result ==
"[\"\"]");
106 QVERIFY(result ==
"[\"\"]");
108 QVERIFY(result ==
"[\"\",\"abc\"]");
110 QVERIFY(result ==
"[\"abc\",\"\",\"abc\"]");
112 QVERIFY(result ==
"[\"abc\",\"abc\"]");
114 QVERIFY(result ==
"[\"abc\",\"abc\"]");
116 QVERIFY(result ==
"[\"abc\"]");
118 QVERIFY(result ==
"[\"abc\"]");
120 QVERIFY(result ==
"[\"abc\",\"cba\"]");
123#if (QT_VERSION >= QT_VERSION_CHECK(6, 3, 0))
124#undef QVERIFY_EXCEPTION_THROWN
125#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.