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

Method Equal

common/values/map_value.cc:104–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104absl::Status MapValue::Equal(
105 const Value& other,
106 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
107 google::protobuf::MessageFactory* absl_nonnull message_factory,
108 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) const {
109 ABSL_DCHECK(descriptor_pool != nullptr);
110 ABSL_DCHECK(message_factory != nullptr);
111 ABSL_DCHECK(arena != nullptr);
112 ABSL_DCHECK(result != nullptr);
113
114 return variant_.Visit([&](const auto& alternative) -> absl::Status {
115 return alternative.Equal(other, descriptor_pool, message_factory, arena,
116 result);
117 });
118}
119
120bool MapValue::IsZeroValue() const {
121 return variant_.Visit([](const auto& alternative) -> bool {

Callers 1

MapValueEqualFunction · 0.45

Calls 1

VisitMethod · 0.45

Tested by

no test coverage detected