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

Method Equal

common/values/legacy_map_value.cc:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31namespace cel::common_internal {
32
33absl::Status LegacyMapValue::Equal(
34 const Value& other,
35 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
36 google::protobuf::MessageFactory* absl_nonnull message_factory,
37 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) const {
38 if (auto map_value = other.AsMap(); map_value.has_value()) {
39 return MapValueEqual(*this, *map_value, descriptor_pool, message_factory,
40 arena, result);
41 }
42 *result = FalseValue();
43 return absl::OkStatus();
44}
45
46bool IsLegacyMapValue(const Value& value) {
47 return value.variant_.Is<LegacyMapValue>();

Callers

nothing calls this directly

Calls 4

MapValueEqualFunction · 0.85
FalseValueFunction · 0.85
AsMapMethod · 0.45
has_valueMethod · 0.45

Tested by

no test coverage detected