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

Function TestContainsImpl

util/generic/strbuf_ut.cpp:369–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367 // TStringBuf must be template parameter otherwise compilation of assertions fails.
368 template <typename TStringBuf = TStringBuf, typename T = std::string_view, decltype(T().contains(T())) = false>
369 void TestContainsImpl(int) {
370 UNIT_ASSERT(TStringBuf("123").contains("12"));
371 UNIT_ASSERT(!TStringBuf("123").contains("21"));
372 }
373
374 void TestContainsImpl(...) {
375 // Do nothing.

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected