| 151 | } |
| 152 | |
| 153 | void PerformGetDateUTCTest(Arena* arena, absl::Time time_stamp, |
| 154 | CelValue* result) { |
| 155 | auto functions = |
| 156 | registry_.FindOverloads("date", true, {CelValue::Type::kTimestamp}); |
| 157 | ASSERT_EQ(functions.size(), 1); |
| 158 | |
| 159 | auto func = functions[0]; |
| 160 | |
| 161 | std::vector<CelValue> args = {CelValue::CreateTimestamp(time_stamp)}; |
| 162 | absl::Span<CelValue> arg_span(&args[0], args.size()); |
| 163 | auto status = func->Evaluate(arg_span, result, arena); |
| 164 | |
| 165 | ASSERT_OK(status); |
| 166 | } |
| 167 | |
| 168 | void PerformGetTimeOfDayTest(Arena* arena, absl::Time time_stamp, |
| 169 | std::string* time_zone, CelValue* result) { |
nothing calls this directly
no test coverage detected