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

Function ResolveInputValue

testing/testrunner/runner_lib.cc:168–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168absl::StatusOr<cel::Value> ResolveInputValue(const InputValue& input_value,
169 const CelTestContext& context,
170 google::protobuf::Arena* arena) {
171 switch (input_value.kind_case()) {
172 case InputValue::kValue: {
173 return ResolveValue(input_value, context, arena);
174 }
175 case InputValue::kExpr: {
176 return ResolveExpr(input_value.expr(), context, arena);
177 }
178 default:
179 return absl::InvalidArgumentError("Unknown InputValue kind.");
180 }
181}
182
183absl::Status AddCustomBindingsToModernActivation(const CelTestContext& context,
184 cel::Activation& activation,

Callers

nothing calls this directly

Calls 4

ResolveValueFunction · 0.85
ResolveExprFunction · 0.85
kind_caseMethod · 0.80
exprMethod · 0.45

Tested by

no test coverage detected