MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / TEST

Function TEST

external/fmt/test/printf-test.cc:58–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 EXPECT_EQ(expected_output, fmt::sprintf(make_positional(format), arg))
57
58TEST(printf_test, no_args) {
59 EXPECT_EQ("test", test_sprintf("test"));
60 EXPECT_EQ(L"test", fmt::sprintf(L"test"));
61}
62
63TEST(printf_test, escape) {
64 EXPECT_EQ("%", test_sprintf("%%"));

Callers 1

printf-test.ccFile · 0.70

Calls 12

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

Tested by

no test coverage detected