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

Method Evaluate

eval/compiler/flat_expr_builder_test.cc:133–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 : CelFunction(CelFunctionDescriptor{name, false, {}}), count_(count) {}
132
133 absl::Status Evaluate(absl::Span<const CelValue> args, CelValue* result,
134 google::protobuf::Arena* arena) const override {
135 if (!args.empty()) {
136 return absl::Status(absl::StatusCode::kInvalidArgument,
137 "Bad arguments number");
138 }
139 (*count_)++;
140 *result = CelValue::CreateBool(true);
141 return absl::OkStatus();
142 }
143
144 int* count_;
145};

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected