| 75 | |
| 76 | template <typename TConsumer, typename TResult, typename I> |
| 77 | void 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 | |
| 87 | template <typename TConsumer, typename TResult, typename I> |
| 88 | void TestConsumerOnRange(TResult& good, I* b, I* e, I* d) { |
nothing calls this directly
no test coverage detected