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

Method Has

tools/flatbuffers_backed_impl.cc:169–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167} // namespace
168
169absl::StatusOr<bool> FlatBuffersMapImpl::Has(const CelValue& key) const {
170 auto lookup_result = (*this)[key];
171 if (!lookup_result.has_value()) {
172 return false;
173 }
174 auto result = *lookup_result;
175 if (result.IsError()) {
176 return *(result.ErrorOrDie());
177 }
178 return true;
179}
180
181absl::optional<CelValue> FlatBuffersMapImpl::operator[](
182 CelValue cel_key) const {

Callers 1

TEST_FFunction · 0.45

Calls 3

ErrorOrDieMethod · 0.80
has_valueMethod · 0.45
IsErrorMethod · 0.45

Tested by 1

TEST_FFunction · 0.36