| 409 | } |
| 410 | |
| 411 | void TestInFunctionMap(const CelMap* cel_map, const CelValue& value, |
| 412 | bool result) { |
| 413 | CelValue result_value; |
| 414 | ASSERT_NO_FATAL_FAILURE(PerformRun(builtin::kInFunction, {}, |
| 415 | {value, CelValue::CreateMap(cel_map)}, |
| 416 | &result_value, options_)); |
| 417 | |
| 418 | ASSERT_EQ(result_value.IsBool(), true); |
| 419 | ASSERT_EQ(result_value.BoolOrDie(), result) |
| 420 | << " for " << CelValue::TypeName(value.type()); |
| 421 | } |
| 422 | |
| 423 | InterpreterOptions options_; |
| 424 |