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

Method Get

common/values/parsed_json_map_value.cc:213–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213absl::Status ParsedJsonMapValue::Get(
214 const Value& key,
215 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
216 google::protobuf::MessageFactory* absl_nonnull message_factory,
217 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) const {
218 CEL_ASSIGN_OR_RETURN(
219 bool ok, Find(key, descriptor_pool, message_factory, arena, result));
220 if (ABSL_PREDICT_FALSE(!ok) && !(result->IsError() || result->IsUnknown())) {
221 *result = NoSuchKeyError(key.DebugString());
222 }
223 return absl::OkStatus();
224}
225
226absl::StatusOr<bool> ParsedJsonMapValue::Find(
227 const Value& key,

Callers

nothing calls this directly

Calls 4

NoSuchKeyErrorFunction · 0.70
IsErrorMethod · 0.45
IsUnknownMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected