mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-19 19:25:53 +00:00
style: clang-tidy auto fixes (#2112)
Fixes #2111. Please review and commit clang-tidy fixes. Co-authored-by: godexsoft <385326+godexsoft@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2d52966806
commit
a369381594
@@ -28,7 +28,7 @@ struct RpcNameConstraintTest : testing::Test {};
|
||||
|
||||
TEST_F(RpcNameConstraintTest, WrongType)
|
||||
{
|
||||
Value value{1};
|
||||
Value const value{1};
|
||||
auto const maybeError = gRpcNameConstraint.checkConstraint(value);
|
||||
ASSERT_TRUE(maybeError.has_value());
|
||||
EXPECT_EQ(maybeError->error, "RPC command name must be a string");
|
||||
@@ -36,7 +36,7 @@ TEST_F(RpcNameConstraintTest, WrongType)
|
||||
|
||||
TEST_F(RpcNameConstraintTest, WrongValue)
|
||||
{
|
||||
Value value{"non_existing_rpc"};
|
||||
Value const value{"non_existing_rpc"};
|
||||
auto const maybeError = gRpcNameConstraint.checkConstraint(value);
|
||||
ASSERT_TRUE(maybeError.has_value());
|
||||
EXPECT_EQ(maybeError->error, "Invalid RPC command name");
|
||||
@@ -44,7 +44,7 @@ TEST_F(RpcNameConstraintTest, WrongValue)
|
||||
|
||||
TEST_F(RpcNameConstraintTest, CorrectValue)
|
||||
{
|
||||
Value value{"server_info"};
|
||||
Value const value{"server_info"};
|
||||
auto const maybeError = gRpcNameConstraint.checkConstraint(value);
|
||||
ASSERT_FALSE(maybeError.has_value());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user