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

Function Run

util/stream/buffered_ut.cpp:10–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8Y_UNIT_TEST_SUITE(TestBufferedIO) {
9 template <class TOut>
10 inline void Run(TOut&& out) {
11 TMersenne<ui64> r;
12
13 for (size_t i = 0; i < 1000; ++i) {
14 const size_t c = r.GenRand() % 10000;
15 TString s;
16
17 for (size_t j = 0; j < c; ++j) {
18 s.append('A' + (r.GenRand() % 10));
19 }
20
21 out.Write(s.data(), s.size());
22 }
23 }
24
25 Y_UNIT_TEST(TestEqual) {
26 TString s1;

Callers 1

Y_UNIT_TESTFunction · 0.70

Calls 5

GenRandMethod · 0.45
appendMethod · 0.45
WriteMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected