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

Method TestInDeprecatedMap

eval/public/builtin_func_test.cc:399–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397 }
398
399 void TestInDeprecatedMap(const CelMap* cel_map, const CelValue& value,
400 bool result) {
401 CelValue result_value;
402 ASSERT_NO_FATAL_FAILURE(PerformRun(builtin::kInDeprecated, {},
403 {value, CelValue::CreateMap(cel_map)},
404 &result_value, options_));
405
406 ASSERT_EQ(result_value.IsBool(), true);
407 ASSERT_EQ(result_value.BoolOrDie(), result)
408 << " for " << CelValue::TypeName(value.type());
409 }
410
411 void TestInFunctionMap(const CelMap* cel_map, const CelValue& value,
412 bool result) {

Callers

nothing calls this directly

Calls 4

BoolOrDieMethod · 0.80
typeMethod · 0.80
CreateMapFunction · 0.50
IsBoolMethod · 0.45

Tested by

no test coverage detected