refactor: starts/ends_with changes for clang-tidy 20
This commit is contained in:
11 files changed
+16
-16
No files matched your search
@@ -64,13 +64,13 @@ void RPCNestedTests::rpcNestedTests()
|
||||
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblock( getblock( getblock(getbestblockhash())[hash] )[hash], true)"); //4 level nesting with whitespace, filtering path and boolean parameter
|
||||
|
||||
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblockchaininfo");
|
||||
QVERIFY(result.substr(0,1) == "{");
|
||||
QVERIFY(result.starts_with("{"));
|
||||
|
||||
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblockchaininfo()");
|
||||
QVERIFY(result.substr(0,1) == "{");
|
||||
QVERIFY(result.starts_with("{"));
|
||||
|
||||
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblockchaininfo "); //whitespace at the end will be tolerated
|
||||
QVERIFY(result.substr(0,1) == "{");
|
||||
QVERIFY(result.starts_with("{"));
|
||||
|
||||
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblockchaininfo()[\"chain\"]"); //Quote path identifier are allowed, but look after a child containing the quotes in the key
|
||||
QVERIFY(result == "null");
|
||||
|
||||
Reference in new issue
Block a user