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

Method Get

common/values/parsed_map_field_value.cc:314–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312} // namespace
313
314absl::Status ParsedMapFieldValue::Get(
315 const Value& key,
316 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
317 google::protobuf::MessageFactory* absl_nonnull message_factory,
318 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) const {
319 CEL_ASSIGN_OR_RETURN(
320 bool ok, Find(key, descriptor_pool, message_factory, arena, result));
321 if (ABSL_PREDICT_FALSE(!ok) && !(result->IsError() || result->IsUnknown())) {
322 *result = ErrorValue(NoSuchKeyError(key.DebugString()));
323 }
324 return absl::OkStatus();
325}
326
327absl::StatusOr<bool> ParsedMapFieldValue::Find(
328 const Value& key,

Callers

nothing calls this directly

Calls 5

ErrorValueFunction · 0.85
NoSuchKeyErrorFunction · 0.70
IsErrorMethod · 0.45
IsUnknownMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected