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

Function Y_UNIT_TEST

library/cpp/string_utils/quote/quote_ut.cpp:6–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5Y_UNIT_TEST_SUITE(TCGIEscapeTest) {
6 Y_UNIT_TEST(ReturnsEndOfTo) {
7 char r[10];
8 const char* returned = CGIEscape(r, "123");
9 UNIT_ASSERT_VALUES_EQUAL(r + strlen("123"), returned);
10 UNIT_ASSERT_VALUES_EQUAL('\0', *returned);
11 }
12
13 Y_UNIT_TEST(NotZeroTerminated) {
14 char r[] = {'1', '2', '3', '4'};

Callers

nothing calls this directly

Calls 12

CgiEscapeFunction · 0.85
CGIEscapeRetFunction · 0.85
CgiUnescapeFunction · 0.85
CGIUnescapeFunction · 0.85
UrlEscapeRetFunction · 0.85
UrlEscapeFunction · 0.85
UrlUnescapeFunction · 0.85
UrlUnescapeRetFunction · 0.85
QuoteFunction · 0.85
CGIEscapeFunction · 0.70
appendMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected