| 1029 | } |
| 1030 | |
| 1031 | absl::Status ForEach( |
| 1032 | ForEachCallback callback, |
| 1033 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 1034 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 1035 | google::protobuf::Arena* absl_nonnull arena) const override { |
| 1036 | for (const auto& entry : map_) { |
| 1037 | CEL_ASSIGN_OR_RETURN(auto ok, callback(entry.first, entry.second)); |
| 1038 | if (!ok) { |
| 1039 | break; |
| 1040 | } |
| 1041 | } |
| 1042 | return absl::OkStatus(); |
| 1043 | } |
| 1044 | |
| 1045 | absl::StatusOr<absl_nonnull ValueIteratorPtr> NewIterator() const override { |
| 1046 | return std::make_unique<CompatMapValueImplIterator>(&map_); |
no outgoing calls
no test coverage detected