Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit aaf31cb

Browse files
committed
clang format
1 parent a75f55d commit aaf31cb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test/parser/postgresparser_test.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ TEST_F(PostgresParserTests, ExpressionUpdateTest) {
394394
(expression::ConstantValueExpression *)update_stmt->updates.at(0)
395395
->value.get();
396396
EXPECT_EQ(CmpBool::CmpTrue, constant->GetValue().CompareEquals(
397-
type::ValueFactory::GetDecimalValue(48)));
397+
type::ValueFactory::GetDecimalValue(48)));
398398

399399
// Test Second Set Condition
400400
EXPECT_EQ(update_stmt->updates.at(1)->column, "s_ytd");
@@ -404,7 +404,7 @@ TEST_F(PostgresParserTests, ExpressionUpdateTest) {
404404
EXPECT_EQ(child1->GetColumnName(), "s_ytd");
405405
auto child2 = (expression::ConstantValueExpression *)op_expr->GetChild(1);
406406
EXPECT_EQ(CmpBool::CmpTrue, child2->GetValue().CompareEquals(
407-
type::ValueFactory::GetIntegerValue(1)));
407+
type::ValueFactory::GetIntegerValue(1)));
408408

409409
// Test Where clause
410410
auto where = (expression::OperatorExpression *)update_stmt->where.get();
@@ -415,14 +415,14 @@ TEST_F(PostgresParserTests, ExpressionUpdateTest) {
415415
EXPECT_EQ(column->GetColumnName(), "s_i_id");
416416
constant = (expression::ConstantValueExpression *)cond1->GetChild(1);
417417
EXPECT_EQ(CmpBool::CmpTrue, constant->GetValue().CompareEquals(
418-
type::ValueFactory::GetIntegerValue(68999)));
418+
type::ValueFactory::GetIntegerValue(68999)));
419419
auto cond2 = (expression::OperatorExpression *)where->GetChild(1);
420420
EXPECT_EQ(cond2->GetExpressionType(), ExpressionType::COMPARE_EQUAL);
421421
column = (expression::TupleValueExpression *)cond2->GetChild(0);
422422
EXPECT_EQ(column->GetColumnName(), "s_w_id");
423423
constant = (expression::ConstantValueExpression *)cond2->GetChild(1);
424424
EXPECT_EQ(CmpBool::CmpTrue, constant->GetValue().CompareEquals(
425-
type::ValueFactory::GetIntegerValue(4)));
425+
type::ValueFactory::GetIntegerValue(4)));
426426
}
427427

428428
TEST_F(PostgresParserTests, StringUpdateTest) {
@@ -857,9 +857,9 @@ TEST_F(PostgresParserTests, ConstraintTest) {
857857
(expression::ConstantValueExpression *)default_expr->GetChild(1);
858858
EXPECT_TRUE(child2 != nullptr);
859859
EXPECT_EQ(CmpBool::CmpTrue, child1->GetValue().CompareEquals(
860-
type::ValueFactory::GetIntegerValue(1)));
860+
type::ValueFactory::GetIntegerValue(1)));
861861
EXPECT_EQ(CmpBool::CmpTrue, child2->GetValue().CompareEquals(
862-
type::ValueFactory::GetIntegerValue(2)));
862+
type::ValueFactory::GetIntegerValue(2)));
863863

864864
// Check Second column
865865
column = create_stmt->columns.at(1).get();
@@ -907,13 +907,13 @@ TEST_F(PostgresParserTests, ConstraintTest) {
907907
(expression::ConstantValueExpression *)check_child1->GetChild(1);
908908
EXPECT_TRUE(plus_child2 != nullptr);
909909
EXPECT_EQ(CmpBool::CmpTrue, plus_child2->GetValue().CompareEquals(
910-
type::ValueFactory::GetIntegerValue(1)));
910+
type::ValueFactory::GetIntegerValue(1)));
911911
auto check_child2 =
912912
(expression::ConstantValueExpression *)column->check_expression->GetChild(
913913
1);
914914
EXPECT_TRUE(check_child2 != nullptr);
915915
EXPECT_EQ(CmpBool::CmpTrue, check_child2->GetValue().CompareEquals(
916-
type::ValueFactory::GetIntegerValue(0)));
916+
type::ValueFactory::GetIntegerValue(0)));
917917

918918
// Check the last foreign key
919919
column = create_stmt->foreign_keys.at(2).get();
@@ -1090,7 +1090,7 @@ TEST_F(PostgresParserTests, FuncCallTest) {
10901090
(expression::ConstantValueExpression *)fun_expr->GetChild(0);
10911091
EXPECT_TRUE(const_expr != nullptr);
10921092
EXPECT_EQ(CmpBool::CmpTrue, const_expr->GetValue().CompareEquals(
1093-
type::ValueFactory::GetIntegerValue(1)));
1093+
type::ValueFactory::GetIntegerValue(1)));
10941094
auto tv_expr = (expression::TupleValueExpression *)fun_expr->GetChild(1);
10951095
EXPECT_TRUE(tv_expr != nullptr);
10961096
EXPECT_EQ("a", tv_expr->GetColumnName());
@@ -1104,7 +1104,7 @@ TEST_F(PostgresParserTests, FuncCallTest) {
11041104
const_expr = (expression::ConstantValueExpression *)fun_expr->GetChild(0);
11051105
EXPECT_TRUE(const_expr != nullptr);
11061106
EXPECT_EQ(CmpBool::CmpTrue, const_expr->GetValue().CompareEquals(
1107-
type::ValueFactory::GetIntegerValue(99)));
1107+
type::ValueFactory::GetIntegerValue(99)));
11081108

11091109
// Check FUN(b) > 2
11101110
auto op_expr =
@@ -1120,7 +1120,7 @@ TEST_F(PostgresParserTests, FuncCallTest) {
11201120
const_expr = (expression::ConstantValueExpression *)op_expr->GetChild(1);
11211121
EXPECT_TRUE(const_expr != nullptr);
11221122
EXPECT_EQ(CmpBool::CmpTrue, const_expr->GetValue().CompareEquals(
1123-
type::ValueFactory::GetIntegerValue(2)));
1123+
type::ValueFactory::GetIntegerValue(2)));
11241124
}
11251125

11261126
TEST_F(PostgresParserTests, UDFFuncCallTest) {
@@ -1143,7 +1143,7 @@ TEST_F(PostgresParserTests, UDFFuncCallTest) {
11431143
(expression::ConstantValueExpression *)fun_expr->GetChild(0);
11441144
EXPECT_TRUE(const_expr != nullptr);
11451145
EXPECT_EQ(CmpBool::CmpTrue, const_expr->GetValue().CompareEquals(
1146-
type::ValueFactory::GetIntegerValue(1)));
1146+
type::ValueFactory::GetIntegerValue(1)));
11471147

11481148
auto tv_expr = (expression::TupleValueExpression *)fun_expr->GetChild(1);
11491149
EXPECT_TRUE(tv_expr != nullptr);

0 commit comments

Comments
 (0)