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

Function CheckMapValue

common/values/value_builder.cc:634–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632using ::google::api::expr::runtime::CelValue;
633
634absl::Status CheckMapValue(const Value& value) {
635 if (auto error_value = value.AsError(); ABSL_PREDICT_FALSE(error_value)) {
636 return error_value->ToStatus();
637 }
638 if (auto unknown_value = value.AsUnknown();
639 ABSL_PREDICT_FALSE(unknown_value)) {
640 return absl::InvalidArgumentError("cannot add unknown value to list");
641 }
642 return absl::OkStatus();
643}
644
645size_t ValueHash(const Value& value) {
646 switch (value.kind()) {

Callers 2

PutMethod · 0.85
PutMethod · 0.85

Calls 3

AsErrorMethod · 0.45
ToStatusMethod · 0.45
AsUnknownMethod · 0.45

Tested by

no test coverage detected