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

Function TEST

test/printf-test.cc:47–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 EXPECT_EQ(expected_output, fmt::sprintf(make_positional(format), arg))
46
47TEST(printf_test, no_args) { EXPECT_EQ("test", test_sprintf("test")); }
48
49TEST(printf_test, trailing_percent) {
50 EXPECT_THROW_MSG(test_sprintf("%"), format_error, "invalid format string");

Callers 1

printf-test.ccFile · 0.70

Calls 12

test_sprintfFunction · 0.85
safe_sprintfFunction · 0.85
sprintfFunction · 0.85
printfFunction · 0.85
fprintfFunction · 0.85
vsprintfFunction · 0.85
vfprintfFunction · 0.85
make_printf_argsFunction · 0.85
formatFunction · 0.70
getMethod · 0.45
fdopenMethod · 0.45

Tested by

no test coverage detected