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

Function Y_UNIT_TEST

util/string/printf_ut.cpp:6–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5Y_UNIT_TEST_SUITE(TStringPrintf) {
6 Y_UNIT_TEST(TestSprintf) {
7 TString s;
8 int len = sprintf(s, "Hello %s", "world");
9 UNIT_ASSERT_EQUAL(s, TString("Hello world"));
10 UNIT_ASSERT_EQUAL(len, 11);
11 }
12
13 Y_UNIT_TEST(TestFcat) {
14 TString s;

Callers

nothing calls this directly

Calls 3

sprintfFunction · 0.85
fcatFunction · 0.85
SprintfFunction · 0.85

Tested by

no test coverage detected