Skip to content

Commit

Permalink
Merge all expression tests to save disk consumption (#3301)
Browse files Browse the repository at this point in the history
* Merge all expression tests

You can use --gtest_filter to run your special tests

* Restore expr mock obj

* Fix compile error

* fix compile
  • Loading branch information
yixinglu authored Nov 15, 2021
1 parent 289aadb commit 026dea5
Show file tree
Hide file tree
Showing 24 changed files with 60 additions and 609 deletions.
8 changes: 0 additions & 8 deletions src/common/expression/test/AggregateExpressionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,3 @@ TEST_F(ExpressionTest, AggregateToString) {
}

} // namespace nebula

int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
folly::init(&argc, &argv, true);
google::SetStderrLogging(google::INFO);

return RUN_ALL_TESTS();
}
8 changes: 0 additions & 8 deletions src/common/expression/test/ArithmeticExpressionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,3 @@ TEST_F(ArithmeticExpressionTest, TestArithmeticExpression) {
}
}
} // namespace nebula

int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
folly::init(&argc, &argv, true);
google::SetStderrLogging(google::INFO);

return RUN_ALL_TESTS();
}
8 changes: 0 additions & 8 deletions src/common/expression/test/AttributeExpressionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,3 @@ TEST_F(AttributeExpressionTest, DateTimeAttribute) {
}

} // namespace nebula

int main(int argc, char **argv) {
testing::InitGoogleTest(&argc, argv);
folly::init(&argc, &argv, true);
google::SetStderrLogging(google::INFO);

return RUN_ALL_TESTS();
}
Loading

0 comments on commit 026dea5

Please sign in to comment.