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

Method Evaluate

eval/eval/function_step_test.cc:938–947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936 CelFunctionDescriptor("Fn", false, {CelValue::Type::kMessage})) {}
937
938 absl::Status Evaluate(absl::Span<const CelValue> args, CelValue* result,
939 google::protobuf::Arena* arena) const override {
940 if (args.size() != 1 || !args.at(0).IsMessage()) {
941 return absl::Status(absl::StatusCode::kInvalidArgument,
942 "Bad arguments number");
943 }
944
945 *result = CelValue::CreateStringView("message");
946 return absl::OkStatus();
947 }
948};
949
950class MessageIdentityFunction : public CelFunction {

Callers

nothing calls this directly

Calls 3

atMethod · 0.80
sizeMethod · 0.45
IsMessageMethod · 0.45

Tested by

no test coverage detected