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

Method Evaluate

eval/eval/function_step_test.cc:956–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954 CelFunctionDescriptor("Fn", false, {CelValue::Type::kMessage})) {}
955
956 absl::Status Evaluate(absl::Span<const CelValue> args, CelValue* result,
957 google::protobuf::Arena* arena) const override {
958 if (args.size() != 1 || !args.at(0).IsMessage()) {
959 return absl::Status(absl::StatusCode::kInvalidArgument,
960 "Bad arguments number");
961 }
962
963 *result = args.at(0);
964 return absl::OkStatus();
965 }
966};
967
968class NullFunction : public CelFunction {

Callers

nothing calls this directly

Calls 3

atMethod · 0.80
sizeMethod · 0.45
IsMessageMethod · 0.45

Tested by

no test coverage detected