MCPcopy Create free account
hub / github.com/fmtlib/fmt / TEST

Function TEST

test/assert-test.cc:15–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include "gtest/gtest.h"
14
15TEST(assert_test, fail) {
16#if GTEST_HAS_DEATH_TEST
17 EXPECT_DEBUG_DEATH(FMT_ASSERT(false, "don't panic!"), "don't panic!");
18#else
19 fmt::print("warning: death tests are not supported\n");
20#endif
21}
22
23TEST(assert_test, dangling_else) {
24 bool test_condition = false;

Callers

nothing calls this directly

Calls 1

printFunction · 0.50

Tested by

no test coverage detected