MCPcopy Create free account
hub / github.com/apache/impala / ValidateDate

Function ValidateDate

be/src/runtime/date-test.cc:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36using namespace datetime_parse_util;
37
38inline void ValidateDate(const DateValue& dv, int exp_year, int exp_month, int exp_day,
39 const string& desc) {
40 int year, month, day;
41 EXPECT_TRUE(dv.ToYearMonthDay(&year, &month, &day)) << desc;
42 EXPECT_EQ(exp_year, year);
43 EXPECT_EQ(exp_month, month);
44 EXPECT_EQ(exp_day, day);
45}
46
47inline DateValue ParseValidateDate(const char* s, bool accept_time_toks, int exp_year,
48 int exp_month, int exp_day) {

Callers 3

ParseValidateDateFunction · 0.85
TestDateTokensFunction · 0.85
RunMethod · 0.85

Calls 1

ToYearMonthDayMethod · 0.80

Tested by

no test coverage detected