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

Method TestInMap

eval/public/builtin_func_test.cc:388–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386 }
387
388 void TestInMap(const CelMap* cel_map, const CelValue& value, bool result) {
389 CelValue result_value;
390 ASSERT_NO_FATAL_FAILURE(PerformRun(builtin::kIn, {},
391 {value, CelValue::CreateMap(cel_map)},
392 &result_value, options_));
393
394 ASSERT_EQ(result_value.IsBool(), true);
395 ASSERT_EQ(result_value.BoolOrDie(), result)
396 << " for " << value.DebugString();
397 }
398
399 void TestInDeprecatedMap(const CelMap* cel_map, const CelValue& value,
400 bool result) {

Callers

nothing calls this directly

Calls 4

BoolOrDieMethod · 0.80
CreateMapFunction · 0.50
IsBoolMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected