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

Function TestStringSplitterCount

util/string/split_ut.cpp:307–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305
306template <typename I, typename C>
307void TestStringSplitterCount(I* str, C delim, size_t good) {
308 auto split = StringSplitter(str).Split(delim);
309 size_t res = split.Count();
310 UNIT_ASSERT_VALUES_EQUAL(res, good);
311 res = split.Count();
312 UNIT_ASSERT_VALUES_EQUAL(res, 0);
313}
314
315Y_UNIT_TEST_SUITE(StringSplitter) {
316 Y_UNIT_TEST(TestSplit) {

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 3

StringSplitterFunction · 0.85
SplitMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected