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

Method Evaluate

eval/eval/function_step_test.cc:974–983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

972 CelFunctionDescriptor("Fn", false, {CelValue::Type::kNullType})) {}
973
974 absl::Status Evaluate(absl::Span<const CelValue> args, CelValue* result,
975 google::protobuf::Arena* arena) const override {
976 if (args.size() != 1 || args.at(0).type() != CelValue::Type::kNullType) {
977 return absl::Status(absl::StatusCode::kInvalidArgument,
978 "Bad arguments number");
979 }
980
981 *result = CelValue::CreateStringView("null");
982 return absl::OkStatus();
983 }
984};
985
986TEST(FunctionStepStrictnessTest,

Callers

nothing calls this directly

Calls 3

typeMethod · 0.80
atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected