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

Method Equal

common/values/struct_value.cc:112–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112absl::Status StructValue::Equal(
113 const Value& other,
114 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
115 google::protobuf::MessageFactory* absl_nonnull message_factory,
116 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) const {
117 ABSL_DCHECK(descriptor_pool != nullptr);
118 ABSL_DCHECK(message_factory != nullptr);
119 ABSL_DCHECK(arena != nullptr);
120 ABSL_DCHECK(result != nullptr);
121
122 return variant_.Visit([&](const auto& alternative) -> absl::Status {
123 return alternative.Equal(other, descriptor_pool, message_factory, arena,
124 result);
125 });
126}
127
128bool StructValue::IsZeroValue() const {
129 return variant_.Visit([](const auto& alternative) -> bool {

Callers 1

StructValueEqualFunction · 0.45

Calls 1

VisitMethod · 0.45

Tested by

no test coverage detected