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

Method TestWith

library/cpp/logger/element_ut.cpp:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void TLogElementTest::TestWith() {
45 TStringStream output;
46 TLog log(MakeHolder<TStreamWithContextLogBackend>(&output));
47
48 THolder<TLogElement> src = MakeHolder<TLogElement>(&log);
49
50 TString message = "Hello, World!";
51 (*src).With("Foo", "Bar").With("Foo", "Baz") << message;
52
53 src.Destroy();
54 UNIT_ASSERT(output.Str() == "Hello, World!; Foo=Bar; Foo=Baz; ");
55}

Callers

nothing calls this directly

Calls 3

WithMethod · 0.80
DestroyMethod · 0.45
StrMethod · 0.45

Tested by

no test coverage detected