Skip to content

Commit 4f29ddf

Browse files
committed
src/qt/test/rpcnestedtests.cpp:apply clang-format
1 parent 39d699c commit 4f29ddf

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/qt/test/rpcnestedtests.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
#include <QTest>
1515

16-
#include <string>
1716
#include <stdexcept>
17+
#include <string>
1818

1919
static RPCHelpMan rpcNestedTest_rpc()
2020
{
@@ -54,31 +54,31 @@ void RPCNestedTests::rpcNestedTests()
5454
std::string result;
5555
std::string result2;
5656
std::string filtered;
57-
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblockchaininfo()[chain]", &filtered); //simple result filtering with path
58-
QVERIFY(result=="main");
57+
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblockchaininfo()[chain]", &filtered); // simple result filtering with path
58+
QVERIFY(result == "main");
5959
QVERIFY(filtered == "getblockchaininfo()[chain]");
6060

61-
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblock(getbestblockhash())"); //simple 2 level nesting
61+
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblock(getbestblockhash())"); // simple 2 level nesting
6262
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblock(getblock(getbestblockhash())[hash], true)");
6363

64-
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblock( getblock( getblock(getbestblockhash())[hash] )[hash], true)"); //4 level nesting with whitespace, filtering path and boolean parameter
64+
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblock( getblock( getblock(getbestblockhash())[hash] )[hash], true)"); // 4 level nesting with whitespace, filtering path and boolean parameter
6565

6666
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblockchaininfo");
6767
QVERIFY(result.starts_with("{"));
6868

6969
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblockchaininfo()");
7070
QVERIFY(result.starts_with("{"));
7171

72-
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblockchaininfo "); //whitespace at the end will be tolerated
72+
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblockchaininfo "); // whitespace at the end will be tolerated
7373
QVERIFY(result.starts_with("{"));
7474

75-
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblockchaininfo()[\"chain\"]"); //Quote path identifier are allowed, but look after a child containing the quotes in the key
75+
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblockchaininfo()[\"chain\"]"); // Quote path identifier are allowed, but look after a child containing the quotes in the key
7676
QVERIFY(result == "null");
7777

78-
RPCConsole::RPCExecuteCommandLine(m_node, result, "createrawtransaction [] {} 0"); //parameter not in brackets are allowed
79-
RPCConsole::RPCExecuteCommandLine(m_node, result2, "createrawtransaction([],{},0)"); //parameter in brackets are allowed
78+
RPCConsole::RPCExecuteCommandLine(m_node, result, "createrawtransaction [] {} 0"); // parameter not in brackets are allowed
79+
RPCConsole::RPCExecuteCommandLine(m_node, result2, "createrawtransaction([],{},0)"); // parameter in brackets are allowed
8080
QVERIFY(result == result2);
81-
RPCConsole::RPCExecuteCommandLine(m_node, result2, "createrawtransaction( [], {} , 0 )"); //whitespace between parameters is allowed
81+
RPCConsole::RPCExecuteCommandLine(m_node, result2, "createrawtransaction( [], {} , 0 )"); // whitespace between parameters is allowed
8282
QVERIFY(result == result2);
8383

8484
RPCConsole::RPCExecuteCommandLine(m_node, result, "getblock(getbestblockhash())[tx][0]", &filtered);

0 commit comments

Comments
 (0)