refactor: starts/ends_with changes for clang-tidy 20

This commit is contained in:
fanquake committed 2025-04-22 13:16:54 +01:00
1 parent 96a5cd8000
commit 2b85d31bcc
11 files changed
+16 -16

No files matched your search

+3 -3
View File
@@ -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");