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

Function TestDelimiterOnString

util/string/split_ut.cpp:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58template <template <typename> class TConsumer, typename TResult, typename I, typename TDelimiter>
59void TestDelimiterOnString(TResult& good, I* str, const TDelimiter& delim) {
60 TResult test;
61 TConsumer<TResult> consumer(&test);
62 SplitString(str, delim, consumer);
63 Cmp(good, test);
64 UNIT_ASSERT_EQUAL(good, test);
65}
66
67template <template <typename> class TConsumer, typename TResult, typename I, typename TDelimiter>
68void TestDelimiterOnRange(TResult& good, I* b, I* e, const TDelimiter& delim) {

Callers

nothing calls this directly

Calls 2

CmpFunction · 0.85
SplitStringFunction · 0.70

Tested by

no test coverage detected