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

Method Get

common/values/custom_list_value.cc:89–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 }
88
89 CelValue Get(google::protobuf::Arena* arena, int index) const override {
90 if (arena == nullptr) {
91 return (*this)[index];
92 }
93 return CelValue::CreateError(google::protobuf::Arena::Create<absl::Status>(
94 arena, absl::InvalidArgumentError("index out of bounds")));
95 }
96
97 private:
98 absl::Status Get(size_t index, const google::protobuf::DescriptorPool* absl_nonnull,

Callers

nothing calls this directly

Calls 2

IndexOutOfBoundsErrorFunction · 0.70
CreateErrorFunction · 0.50

Tested by

no test coverage detected