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

Function Y_UNIT_TEST

library/cpp/http/misc/httpdate_ut.cpp:6–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5Y_UNIT_TEST_SUITE(TestHttpDate) {
6 Y_UNIT_TEST(Test1) {
7 char buf1[100];
8 char buf2[100];
9
10 UNIT_ASSERT((int)strlen(format_http_date(0, buf1, sizeof(buf1))) == format_http_date(buf2, sizeof(buf2), 0));
11 }
12 Y_UNIT_TEST(Test2) {
13 UNIT_ASSERT_STRINGS_EQUAL(FormatHttpDate(1234567890), "Fri, 13 Feb 2009 23:31:30 GMT");
14 }

Callers

nothing calls this directly

Calls 2

format_http_dateFunction · 0.85
FormatHttpDateFunction · 0.85

Tested by

no test coverage detected