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

Function Y_UNIT_TEST

util/string/split_ut.cpp:123–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121
122Y_UNIT_TEST_SUITE(SplitStringTest) {
123 Y_UNIT_TEST(TestCharSingleDelimiter) {
124 TString data("qw ab qwabcab");
125 TString canonic[] = {"qw", "ab", "", "qwabcab"};
126 TVector<TString> good(canonic, canonic + 4);
127 TCharDelimiter<const char> delim(' ');
128
129 TestDelimiterOnString<TContainerConsumer>(good, data.data(), delim);
130 TestDelimiterOnRange<TContainerConsumer>(good, data.data(), data.end(), delim);
131 }
132
133 Y_UNIT_TEST(TestWideSingleDelimiter) {
134 TUtf16String data(u"qw ab qwabcab");

Callers

nothing calls this directly

Calls 15

CmpFunction · 0.85
StringSplitterFunction · 0.85
TestStringSplitterCountFunction · 0.85
Y_UNUSEDFunction · 0.85
TDoubleIteratorClass · 0.85
SkipEmptyMethod · 0.80
SplitBySetMethod · 0.80
SplitByStringMethod · 0.80
SplitByFuncMethod · 0.80
CollectMethod · 0.80

Tested by

no test coverage detected