MCPcopy Create free account
hub / github.com/chen3feng/toft / TEST

Function TEST

system/time/date_test.cpp:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace toft {
11
12TEST(Date, Ctor) {
13 EXPECT_EQ(Date(1970, 1, 1), Date());
14 EXPECT_NO_THROW(Date(2000, 2, 29));
15 EXPECT_NO_THROW(Date(2012, 2, 29));
16}
17
18TEST(Date, CtorInvalid) {
19 EXPECT_ANY_THROW(Date(1970, 1, 32));

Callers

nothing calls this directly

Calls 14

DateClass · 0.85
YearMethod · 0.80
MonthMethod · 0.80
DayMethod · 0.80
SetYearMethod · 0.80
SetMonthMethod · 0.80
SetDayMethod · 0.80
DaysToNextMonthMethod · 0.80
DaysToPreviousMonthMethod · 0.80
DaysToMethod · 0.80
FormatMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected