| 350 | } |
| 351 | |
| 352 | void TestInList(const CelList* cel_list, const CelValue& value, bool result) { |
| 353 | CelValue result_value; |
| 354 | ASSERT_NO_FATAL_FAILURE(PerformRun(builtin::kIn, {}, |
| 355 | {value, CelValue::CreateList(cel_list)}, |
| 356 | &result_value)); |
| 357 | |
| 358 | ASSERT_EQ(result_value.IsBool(), true) |
| 359 | << result_value.DebugString() << " argument: " << value.DebugString(); |
| 360 | ASSERT_EQ(result_value.BoolOrDie(), result) |
| 361 | << " for " << CelValue::TypeName(value.type()); |
| 362 | } |
| 363 | |
| 364 | void TestInDeprecatedList(const CelList* cel_list, const CelValue& value, |
| 365 | bool result) { |
nothing calls this directly
no test coverage detected