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

Method Equal

common/values/list_value.cc:92–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92absl::Status ListValue::Equal(
93 const Value& other,
94 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
95 google::protobuf::MessageFactory* absl_nonnull message_factory,
96 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) const {
97 ABSL_DCHECK(descriptor_pool != nullptr);
98 ABSL_DCHECK(message_factory != nullptr);
99 ABSL_DCHECK(arena != nullptr);
100 ABSL_DCHECK(result != nullptr);
101
102 return variant_.Visit([&](const auto& alternative) -> absl::Status {
103 return alternative.Equal(other, descriptor_pool, message_factory, arena,
104 result);
105 });
106}
107
108bool ListValue::IsZeroValue() const {
109 return variant_.Visit([](const auto& alternative) -> bool {

Callers 1

ListValueEqualFunction · 0.45

Calls 1

VisitMethod · 0.45

Tested by

no test coverage detected