MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / TestInList

Method TestInList

eval/public/builtin_func_test.cc:352–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 5

BoolOrDieMethod · 0.80
typeMethod · 0.80
CreateListFunction · 0.50
IsBoolMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected