| 198 | } |
| 199 | |
| 200 | void PerformBetweenToDTest(Arena* arena, const google::protobuf::Message* time_of_day, |
| 201 | const google::protobuf::Message* start, |
| 202 | const google::protobuf::Message* stop, CelValue* result) { |
| 203 | auto functions = registry_.FindOverloads( |
| 204 | "between", true, |
| 205 | {CelValue::Type::kMessage, CelValue::Type::kMessage, |
| 206 | CelValue::Type::kMessage}); |
| 207 | ASSERT_EQ(functions.size(), 1); |
| 208 | |
| 209 | auto func = functions[0]; |
| 210 | |
| 211 | std::vector<CelValue> args = { |
| 212 | CelProtoWrapper::CreateMessage(time_of_day, arena), |
| 213 | CelProtoWrapper::CreateMessage(start, arena), |
| 214 | CelProtoWrapper::CreateMessage(stop, arena)}; |
| 215 | absl::Span<CelValue> arg_span(&args[0], args.size()); |
| 216 | auto status = func->Evaluate(arg_span, result, arena); |
| 217 | |
| 218 | ASSERT_OK(status); |
| 219 | } |
| 220 | |
| 221 | void PerformBetweenToDStrTest(Arena* arena, |
| 222 | const google::protobuf::Message* time_of_day, |
nothing calls this directly
no test coverage detected