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

Function Y_UNIT_TEST

util/stream/format_ut.cpp:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6Y_UNIT_TEST_SUITE(TOutputStreamFormattingTest) {
7 Y_UNIT_TEST(TestLeftPad) {
8 TStringStream ss;
9 ss << LeftPad(10, 4, '0');
10 UNIT_ASSERT_VALUES_EQUAL("0010", ss.Str());
11
12 ss.Clear();
13 ss << LeftPad(222, 1);
14 UNIT_ASSERT_VALUES_EQUAL("222", ss.Str());
15 }
16
17 Y_UNIT_TEST(TestRightPad) {
18 TStringStream ss;

Callers

nothing calls this directly

Calls 15

LeftPadFunction · 0.85
RightPadFunction · 0.85
HexTextFunction · 0.85
BinFunction · 0.85
SBinFunction · 0.85
BinTextFunction · 0.85
HumanReadableSizeFunction · 0.85
HumanReadableFunction · 0.85
MicroSecondsFunction · 0.85
HexFunction · 0.70
PrecFunction · 0.70
UTF8ToWideFunction · 0.50

Tested by

no test coverage detected