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

Method Evaluate

eval/tests/end_to_end_test.cc:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 output_(*output) {}
41
42 absl::Status Evaluate(absl::Span<const CelValue> args, CelValue* result,
43 google::protobuf::Arena* arena) const override {
44 if (args.size() != 1) {
45 return absl::Status(absl::StatusCode::kInvalidArgument,
46 "Bad arguments number");
47 }
48 output_.push_back(args.at(0));
49 *result = CelValue::CreateBool(true);
50 return absl::OkStatus();
51 }
52
53 std::vector<CelValue>& output_;
54};

Callers 3

ASSERT_OK_AND_ASSIGNFunction · 0.45
TEST_PFunction · 0.45
ASSERT_OK_AND_ASSIGNFunction · 0.45

Calls 2

atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected