MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / TEST_P

Function TEST_P

tests/unit/test_logging.cpp:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34);
35
36TEST_P(LogLevelsTest, PutMessage) {
37 auto [label, plogger] = GetParam();
38 ASSERT_TRUE(plogger);
39 auto &logger = *plogger;
40
41 std::random_device rand_dev;
42 std::mt19937_64 rand_gen(rand_dev());
43 auto test_message = std::format("{}{}", rand_gen(), rand_gen());
44 BOOST_LOG(logger) << test_message;
45
46 ASSERT_TRUE(log_checker::line_contains(log_file, test_message));
47}

Callers

nothing calls this directly

Calls 1

line_containsFunction · 0.85

Tested by

no test coverage detected