| 374 | } |
| 375 | |
| 376 | void TestInFunctionList(const CelList* cel_list, const CelValue& value, |
| 377 | bool result) { |
| 378 | CelValue result_value; |
| 379 | ASSERT_NO_FATAL_FAILURE(PerformRun(builtin::kInFunction, {}, |
| 380 | {value, CelValue::CreateList(cel_list)}, |
| 381 | &result_value)); |
| 382 | |
| 383 | ASSERT_EQ(result_value.IsBool(), true); |
| 384 | ASSERT_EQ(result_value.BoolOrDie(), result) |
| 385 | << " for " << CelValue::TypeName(value.type()); |
| 386 | } |
| 387 | |
| 388 | void TestInMap(const CelMap* cel_map, const CelValue& value, bool result) { |
| 389 | CelValue result_value; |
nothing calls this directly
no test coverage detected