| 83 | } |
| 84 | |
| 85 | absl::Status DurationValue::Equal( |
| 86 | const Value& other, |
| 87 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 88 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 89 | google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) const { |
| 90 | ABSL_DCHECK(descriptor_pool != nullptr); |
| 91 | ABSL_DCHECK(message_factory != nullptr); |
| 92 | ABSL_DCHECK(arena != nullptr); |
| 93 | ABSL_DCHECK(result != nullptr); |
| 94 | |
| 95 | if (auto other_value = other.AsDuration(); other_value.has_value()) { |
| 96 | *result = BoolValue{NativeValue() == other_value->NativeValue()}; |
| 97 | return absl::OkStatus(); |
| 98 | } |
| 99 | *result = FalseValue(); |
| 100 | return absl::OkStatus(); |
| 101 | } |
| 102 | |
| 103 | } // namespace cel |
nothing calls this directly
no test coverage detected