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

Function CombString

library/cpp/http/io/chunk_ut.cpp:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 static const char test_data[] = "87s6cfbsudg cuisg s igasidftasiy tfrcua6s";
13
14 TString CombString(const TString& s, size_t chunkSize) {
15 TString result;
16 for (size_t pos = 0; pos < s.size(); pos += 2 * chunkSize)
17 result += s.substr(pos, chunkSize);
18 return result;
19 }
20
21 void WriteTestData(IOutputStream * stream, TString * contents) {
22 contents->clear();

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 2

sizeMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected