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

Method TestFormat

library/cpp/logger/log_ut.cpp:155–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void TLogTest::TestFormat() {
156 TStringStream data;
157
158 {
159 TLog log(THolder(new TStreamLogBackend(&data)));
160
161 log << "qw"
162 << " "
163 << "1234" << 1234 << " " << 12.3 << 'q' << Endl;
164 }
165
166 UNIT_ASSERT_EQUAL(data.Str(), "qw 12341234 12.3q\n");
167}
168
169void TLogTest::TestWrite() {
170 TStringStream data;

Callers

nothing calls this directly

Calls 2

THolderClass · 0.50
StrMethod · 0.45

Tested by

no test coverage detected