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

Function TEST

test/compile-test.cc:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "gtest-extra.h"
22
23TEST(compile_test, compile_fallback) {
24 // FMT_COMPILE should fallback on runtime formatting when `if constexpr` is
25 // not available.
26 EXPECT_EQ("42", fmt::format(FMT_COMPILE("{}"), 42));
27}
28
29struct type_with_get {
30 template <int> friend void get(type_with_get);

Callers

nothing calls this directly

Calls 15

type_with_getClass · 0.85
stringClass · 0.85
test_formattableClass · 0.85
styledFunction · 0.85
bgFunction · 0.85
std_context_testClass · 0.85
check_is_compiled_stringFunction · 0.85
formatFunction · 0.70
to_stringableClass · 0.70
argFunction · 0.50
joinFunction · 0.50
format_toFunction · 0.50

Tested by

no test coverage detected