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

Method SetupEvaluatorEnvironment

codelab/exercise4.cc:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 }
81
82 absl::Status SetupEvaluatorEnvironment() {
83 CEL_RETURN_IF_ERROR(RegisterBuiltinFunctions(builder_->GetRegistry()));
84 // Codelab part 2:
85 // Register the map.contains(string, value) function.
86 // Hint: use `CelFunctionAdapter::CreateAndRegister` to adapt from a free
87 // function ContainsExtensionFunction.
88 return absl::OkStatus();
89 }
90
91 absl::StatusOr<bool> Evaluate(const CheckedExpr& expr,
92 const AttributeContext& context) {

Callers 1

Calls 2

RegisterBuiltinFunctionsFunction · 0.85
GetRegistryMethod · 0.80

Tested by

no test coverage detected