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

Function AssertStructTmEqual

util/draft/datetime_ut.cpp:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 }
19
20 void AssertStructTmEqual(const TString& marker, const struct tm& tmt, const NDatetime::TSimpleTM& tms) {
21 UNIT_ASSERT_VALUES_EQUAL_C((int)tms.Sec, tmt.tm_sec, marker);
22 UNIT_ASSERT_VALUES_EQUAL_C((int)tms.Min, tmt.tm_min, marker);
23 UNIT_ASSERT_VALUES_EQUAL_C((int)tms.Hour, tmt.tm_hour, marker);
24 UNIT_ASSERT_VALUES_EQUAL_C((int)tms.WDay, tmt.tm_wday, marker);
25 UNIT_ASSERT_VALUES_EQUAL_C((int)tms.MDay, tmt.tm_mday, marker);
26 UNIT_ASSERT_VALUES_EQUAL_C((int)tms.Mon, tmt.tm_mon, marker);
27 UNIT_ASSERT_VALUES_EQUAL_C((int)tms.YDay, tmt.tm_yday, marker);
28 UNIT_ASSERT_VALUES_EQUAL_C((int)tms.Year, tmt.tm_year, marker);
29 UNIT_ASSERT_VALUES_EQUAL_C((int)tms.IsDst, tmt.tm_isdst, marker);
30#ifndef _win_
31 UNIT_ASSERT_VALUES_EQUAL_C((int)tms.GMTOff, tmt.tm_gmtoff, marker);
32#endif
33 }
34
35 void AssertSimpleTM(const TString& mark,
36 const NDatetime::TSimpleTM& tms,

Callers 2

AssertSimpleTMFunction · 0.85
Y_UNIT_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected