@@ -142,7 +142,7 @@ TEST_F(CppParserTest, FunctionWithMultipleDeclarations)
142142 _transaction ([&, this ]() {
143143 RCppFunction callees = _db->query <model::CppFunction>(
144144 QCppFunction::name == " multiFunction" );
145- EXPECT_GT (callees.size (), 0 );
145+ EXPECT_FALSE (callees.empty () );
146146
147147 RCppAstNode multiFuncAstNode = _db->query <model::CppAstNode>(
148148 QCppAstNode::entityHash == callees.begin ()->entityHash );
@@ -307,7 +307,7 @@ TEST_F(CppParserTest, Typedef)
307307 QCppTypedef::name == " Integer" );
308308 RCppAstNode astNodes = _db->query <model::CppAstNode>(
309309 QCppAstNode::entityHash == integer.entityHash );
310- EXPECT_GT (astNodes.size (), 0 );
310+ EXPECT_FALSE (astNodes.empty () );
311311
312312 for (const model::CppAstNode& n : astNodes)
313313 {
@@ -461,11 +461,11 @@ TEST_F(CppParserTest, Enum)
461461 {
462462 RCppEnum enumerations = _db->query <model::CppEnum>(
463463 QCppEnum::name == " Enumeration" );
464- EXPECT_GT (enumerations.size (), 0 );
464+ EXPECT_FALSE (enumerations.empty () );
465465
466466 RCppAstNode astNodes = _db->query <model::CppAstNode>(
467467 QCppAstNode::entityHash == enumerations.begin ()->entityHash );
468- EXPECT_GT (astNodes.size (), 0 );
468+ EXPECT_FALSE (astNodes.empty () );
469469
470470 for (const model::CppAstNode& n : astNodes)
471471 {
0 commit comments