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

Method TestInFunctionList

eval/public/builtin_func_test.cc:376–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected