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

Function TestConsumerOnString

util/string/split_ut.cpp:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76template <typename TConsumer, typename TResult, typename I>
77void TestConsumerOnString(TResult& good, I* str, I* d) {
78 TResult test;
79 TContainerConsumer<TResult> consumer(&test);
80 TConsumer tested(&consumer);
81 TCharDelimiter<const I> delim(*d);
82 SplitString(str, delim, tested);
83 Cmp(good, test);
84 UNIT_ASSERT_EQUAL(good, test);
85}
86
87template <typename TConsumer, typename TResult, typename I>
88void TestConsumerOnRange(TResult& good, I* b, I* e, I* d) {

Callers

nothing calls this directly

Calls 2

CmpFunction · 0.85
SplitStringFunction · 0.70

Tested by

no test coverage detected