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

Function Y_UNIT_TEST

util/stream/tokenizer_ut.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14Y_UNIT_TEST_SUITE(TStreamTokenizerTests) {
15 Y_UNIT_TEST(EmptyStreamTest) {
16 auto&& input = TNullInput{};
17 auto&& tokenizer = TStreamTokenizer<TEol>{&input};
18 auto tokensCount = size_t{};
19 for (auto it = tokenizer.begin(); tokenizer.end() != it; ++it) {
20 CheckIfNullTerminated(TStringBuf{it->Data(), it->Length()});
21 ++tokensCount;
22 }
23 UNIT_ASSERT_VALUES_EQUAL(0, tokensCount);
24 }
25
26 Y_UNIT_TEST(EmptyTokensTest) {
27 const char data[] = "\n\n";

Callers

nothing calls this directly

Calls 6

CheckIfNullTerminatedFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
DataMethod · 0.45
LengthMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected