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

Method TestToYearMonthDay

be/src/benchmarks/date-benchmark.cc:124–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124 void TestToYearMonthDay(int batch_size) {
125 DCHECK(date_.size() == to_ymd_result_.size());
126 for (int i = 0; i < batch_size; ++i) {
127 int n = date_.size();
128 for (int j = 0; j < n; ++j) {
129 ignore_result(date_[j].ToYearMonthDay(
130 &to_ymd_result_[j].year_,
131 &to_ymd_result_[j].month_,
132 &to_ymd_result_[j].day_));
133 }
134 }
135 }
136
137 void TestToYear(int batch_size) {
138 DCHECK(date_.size() == to_year_result_.size());

Callers 1

TestToYearMonthDayFunction · 0.80

Calls 3

ignore_resultFunction · 0.85
ToYearMonthDayMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected