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

Function ToStringViaOstream

util/stream/format_std_ut.cpp:9–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7Y_UNIT_TEST_SUITE(StdOstreamFormattingTest) {
8 template <typename T>
9 TString ToStringViaOstream(T baseNumber) {
10 std::stringstream ss;
11 ss << baseNumber;
12 return ss.str();
13 }
14
15 Y_UNIT_TEST(TestBin) {
16 UNIT_ASSERT_VALUES_EQUAL(ToStringViaOstream(Bin(static_cast<ui32>(2), nullptr)), "10");

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected