MCPcopy Create free account
hub / github.com/catboost/catboost / Y_UNIT_TEST

Function Y_UNIT_TEST

util/stream/printf_ut.cpp:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9Y_UNIT_TEST_SUITE(TStreamPrintfTest) {
10 Y_UNIT_TEST(TestPrintf) {
11 TStringStream ss;
12
13 UNIT_ASSERT_EQUAL(Printf(ss, "qw %s %d", "er", 1), 7);
14 UNIT_ASSERT_EQUAL(ss.Str(), "qw er 1");
15 }
16
17#ifdef __GNUC__
18 #pragma GCC diagnostic ignored "-Wformat-zero-length"

Callers

nothing calls this directly

Calls 3

PrintfFunction · 0.70
StrMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected