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

Function ParseValidateDate

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

Source from the content-addressed store, hash-verified

45}
46
47inline DateValue ParseValidateDate(const char* s, bool accept_time_toks, int exp_year,
48 int exp_month, int exp_day) {
49 DCHECK(s != nullptr);
50 DateValue v = DateValue::ParseSimpleDateFormat(s, strlen(s), accept_time_toks);
51 ValidateDate(v, exp_year, exp_month, exp_day, s);
52 return v;
53}
54
55TEST(DateTest, ParseDefault) {
56 // Parse with time tokens rejected.

Callers 1

TESTFunction · 0.85

Calls 1

ValidateDateFunction · 0.85

Tested by

no test coverage detected