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

Function TestConsumerOnRange

util/string/split_ut.cpp:88–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87template <typename TConsumer, typename TResult, typename I>
88void TestConsumerOnRange(TResult& good, I* b, I* e, I* d) {
89 TResult test;
90 TContainerConsumer<TResult> consumer(&test);
91 TConsumer tested(&consumer);
92 TCharDelimiter<const I> delim(*d);
93 SplitString(b, e, delim, tested);
94 Cmp(good, test);
95 UNIT_ASSERT_EQUAL(good, test);
96}
97
98using TStrokaConsumer = TContainerConsumer<TVector<TString>>;
99

Callers

nothing calls this directly

Calls 2

CmpFunction · 0.85
SplitStringFunction · 0.70

Tested by

no test coverage detected