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

Method TestInFunctionMap

eval/public/builtin_func_test.cc:411–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409 }
410
411 void TestInFunctionMap(const CelMap* cel_map, const CelValue& value,
412 bool result) {
413 CelValue result_value;
414 ASSERT_NO_FATAL_FAILURE(PerformRun(builtin::kInFunction, {},
415 {value, CelValue::CreateMap(cel_map)},
416 &result_value, options_));
417
418 ASSERT_EQ(result_value.IsBool(), true);
419 ASSERT_EQ(result_value.BoolOrDie(), result)
420 << " for " << CelValue::TypeName(value.type());
421 }
422
423 InterpreterOptions options_;
424

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