| 386 | } |
| 387 | |
| 388 | void TestInMap(const CelMap* cel_map, const CelValue& value, bool result) { |
| 389 | CelValue result_value; |
| 390 | ASSERT_NO_FATAL_FAILURE(PerformRun(builtin::kIn, {}, |
| 391 | {value, CelValue::CreateMap(cel_map)}, |
| 392 | &result_value, options_)); |
| 393 | |
| 394 | ASSERT_EQ(result_value.IsBool(), true); |
| 395 | ASSERT_EQ(result_value.BoolOrDie(), result) |
| 396 | << " for " << value.DebugString(); |
| 397 | } |
| 398 | |
| 399 | void TestInDeprecatedMap(const CelMap* cel_map, const CelValue& value, |
| 400 | bool result) { |
nothing calls this directly
no test coverage detected