| 115 | } |
| 116 | |
| 117 | void PerformBetweenStrTest(Arena* arena, absl::Time time_stamp, |
| 118 | std::string* start, std::string* stop, |
| 119 | CelValue* result) { |
| 120 | auto functions = registry_.FindOverloads( |
| 121 | "between", true, |
| 122 | {CelValue::Type::kTimestamp, CelValue::Type::kString, |
| 123 | CelValue::Type::kString}); |
| 124 | ASSERT_EQ(functions.size(), 1); |
| 125 | |
| 126 | auto func = functions[0]; |
| 127 | |
| 128 | std::vector<CelValue> args = {CelValue::CreateTimestamp(time_stamp), |
| 129 | CelValue::CreateString(start), |
| 130 | CelValue::CreateString(stop)}; |
| 131 | absl::Span<CelValue> arg_span(&args[0], args.size()); |
| 132 | auto status = func->Evaluate(arg_span, result, arena); |
| 133 | |
| 134 | ASSERT_OK(status); |
| 135 | } |
| 136 | |
| 137 | void PerformGetDateTest(Arena* arena, absl::Time time_stamp, |
| 138 | std::string* time_zone, CelValue* result) { |
nothing calls this directly
no test coverage detected