Skip to content

Commit

Permalink
Improve DeprecatedAttributestTest.cpp to have 100% branch coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Oct 17, 2023
1 parent 09a8e6b commit e4e3a5d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const char* const DeprecatedAttributeTest::ERROR_LOG_PATH =
TEST_F(DeprecatedAttributeTest, checkWarnings)
{
#if defined(DEPRECATED_ATTRIBUTE_TEST_CHECK_WARNINGS) && DEPRECATED_ATTRIBUTE_TEST_CHECK_WARNINGS != 0
ASSERT_FALSE(matchInFile(ERROR_LOG_PATH, std::regex("Unknown warning to check matchInFile method!")));
ASSERT_TRUE(matchInFile(ERROR_LOG_PATH,
std::regex("DeprecatedAttribute\\.cpp.*15.*81.*warning.*FIVE.*deprecated"))) <<
"Warning not found in '" << ERROR_LOG_PATH << "'!";
Expand Down

0 comments on commit e4e3a5d

Please sign in to comment.