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

Method TestInDeprecatedList

eval/public/builtin_func_test.cc:364–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362 }
363
364 void TestInDeprecatedList(const CelList* cel_list, const CelValue& value,
365 bool result) {
366 CelValue result_value;
367 ASSERT_NO_FATAL_FAILURE(PerformRun(builtin::kInDeprecated, {},
368 {value, CelValue::CreateList(cel_list)},
369 &result_value));
370
371 ASSERT_EQ(result_value.IsBool(), true);
372 ASSERT_EQ(result_value.BoolOrDie(), result)
373 << " for " << CelValue::TypeName(value.type());
374 }
375
376 void TestInFunctionList(const CelList* cel_list, const CelValue& value,
377 bool result) {

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