Skip to content

Commit

Permalink
maximize coverage in exam
Browse files Browse the repository at this point in the history
  • Loading branch information
raggledodo committed Jul 23, 2019
1 parent ec514ea commit 5b3e74e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions exam/test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,14 @@ TEST(EXAM, Logality)
FAIL() << "fatal should never have gone this far";
};

auto fatal_action2 = []()
{
logs::get_logger().log(logs::FATAL, "fatal message2");
FAIL() << "fatal should never have gone this far";
};

EXPECT_FATAL(fatal_action(), "fatal message");
EXPECT_FATAL(fatal_action2(), "fatal message2");
EXPECT_ERROR(logs::error("error message"), "error message");
EXPECT_WARN(logs::warn("warning message"), "warning message");
EXPECT_INFO(logs::info("information message"), "information message");
Expand Down

0 comments on commit 5b3e74e

Please sign in to comment.