| 397 | } |
| 398 | |
| 399 | void TestInDeprecatedMap(const CelMap* cel_map, const CelValue& value, |
| 400 | bool result) { |
| 401 | CelValue result_value; |
| 402 | ASSERT_NO_FATAL_FAILURE(PerformRun(builtin::kInDeprecated, {}, |
| 403 | {value, CelValue::CreateMap(cel_map)}, |
| 404 | &result_value, options_)); |
| 405 | |
| 406 | ASSERT_EQ(result_value.IsBool(), true); |
| 407 | ASSERT_EQ(result_value.BoolOrDie(), result) |
| 408 | << " for " << CelValue::TypeName(value.type()); |
| 409 | } |
| 410 | |
| 411 | void TestInFunctionMap(const CelMap* cel_map, const CelValue& value, |
| 412 | bool result) { |