mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-30 10:30:22 +00:00
refactor: Enable clang-tidy readability-identifier-naming check (#6571)
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
namespace xrpl::RPC {
|
||||
|
||||
class codeString_test : public beast::unit_test::suite
|
||||
class codeString_test : public beast::unit_test::Suite
|
||||
{
|
||||
private:
|
||||
template <typename Type>
|
||||
@@ -25,7 +25,7 @@ private:
|
||||
}
|
||||
|
||||
void
|
||||
test_OK()
|
||||
testOk()
|
||||
{
|
||||
testcase("OK");
|
||||
{
|
||||
@@ -34,7 +34,7 @@ private:
|
||||
}
|
||||
|
||||
{
|
||||
auto s = codeString(Status::OK);
|
||||
auto s = codeString(Status::kOK);
|
||||
expect(s.empty(), "String for OK status");
|
||||
}
|
||||
|
||||
@@ -49,13 +49,13 @@ private:
|
||||
}
|
||||
|
||||
{
|
||||
auto s = codeString(rpcSUCCESS);
|
||||
auto s = codeString(RpcSuccess);
|
||||
expect(s.empty(), "String for rpcSUCCESS");
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
test_error()
|
||||
testError()
|
||||
{
|
||||
testcase("error");
|
||||
{
|
||||
@@ -69,7 +69,7 @@ private:
|
||||
}
|
||||
|
||||
{
|
||||
auto s = codeString(rpcBAD_SYNTAX);
|
||||
auto s = codeString(RpcBadSyntax);
|
||||
expect(s == "badSyntax: Syntax error.", s);
|
||||
}
|
||||
}
|
||||
@@ -78,17 +78,17 @@ public:
|
||||
void
|
||||
run() override
|
||||
{
|
||||
test_OK();
|
||||
test_error();
|
||||
testOk();
|
||||
testError();
|
||||
}
|
||||
};
|
||||
|
||||
BEAST_DEFINE_TESTSUITE(codeString, rpc, RPC);
|
||||
|
||||
class fillJson_test : public beast::unit_test::suite
|
||||
class fillJson_test : public beast::unit_test::Suite
|
||||
{
|
||||
private:
|
||||
Json::Value value_;
|
||||
json::Value value_;
|
||||
|
||||
template <typename Type>
|
||||
void
|
||||
@@ -99,7 +99,7 @@ private:
|
||||
}
|
||||
|
||||
void
|
||||
test_OK()
|
||||
testOk()
|
||||
{
|
||||
testcase("OK");
|
||||
fillJson(Status());
|
||||
@@ -108,13 +108,13 @@ private:
|
||||
fillJson(0);
|
||||
expect(!value_, "Value for 0 status");
|
||||
|
||||
fillJson(Status::OK);
|
||||
fillJson(Status::kOK);
|
||||
expect(!value_, "Value for OK status");
|
||||
|
||||
fillJson(tesSUCCESS);
|
||||
expect(!value_, "Value for tesSUCCESS");
|
||||
|
||||
fillJson(rpcSUCCESS);
|
||||
fillJson(RpcSuccess);
|
||||
expect(!value_, "Value for rpcSUCCESS");
|
||||
}
|
||||
|
||||
@@ -157,14 +157,14 @@ private:
|
||||
}
|
||||
|
||||
void
|
||||
test_error()
|
||||
testError()
|
||||
{
|
||||
testcase("error");
|
||||
expectFill("temBAD_AMOUNT", temBAD_AMOUNT, {}, "temBAD_AMOUNT: Malformed: Bad amount.");
|
||||
|
||||
expectFill(
|
||||
"rpcBAD_SYNTAX",
|
||||
rpcBAD_SYNTAX,
|
||||
"RpcBadSyntax",
|
||||
RpcBadSyntax,
|
||||
{"An error.", "Another error."},
|
||||
"badSyntax: Syntax error.");
|
||||
|
||||
@@ -172,7 +172,7 @@ private:
|
||||
}
|
||||
|
||||
void
|
||||
test_throw()
|
||||
testThrow()
|
||||
{
|
||||
testcase("throw");
|
||||
try
|
||||
@@ -196,9 +196,9 @@ public:
|
||||
void
|
||||
run() override
|
||||
{
|
||||
test_OK();
|
||||
test_error();
|
||||
test_throw();
|
||||
testOk();
|
||||
testError();
|
||||
testThrow();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user