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

Function CheckIfNullTerminated

util/stream/tokenizer_ut.cpp:10–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "tokenizer.h"
9
10static inline void CheckIfNullTerminated(const TStringBuf str) {
11 UNIT_ASSERT_VALUES_EQUAL('\0', *(str.data() + str.size()));
12}
13
14Y_UNIT_TEST_SUITE(TStreamTokenizerTests) {
15 Y_UNIT_TEST(EmptyStreamTest) {

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected