mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
It is common to want to match only a subset of fields in large protobufs, and doing that in rust right now requires manually clearing out the fields in the `actual` message that we don't care about. This is a pain, and a worse experience when compared to C++. Like in C++, when doing partial matching, only fields set in the expected protobuf message are compared, while extra fields set only in the actual message are ignored. When using the C++ kernel we leverage `proto2::util::MessageDifferencer`, and for the UPB kernel we use the `kUpb_CompareOption_Partial` option. PiperOrigin-RevId: 964125682 |
||
|---|---|---|
| .. | ||
| utf8 | ||
| accessors_map_test.rs | ||
| accessors_proto3_test.rs | ||
| accessors_repeated_test.rs | ||
| accessors_test.rs | ||
| bad_names_test.rs | ||
| BUILD | ||
| child_parent_test.rs | ||
| ctype_cord_test.rs | ||
| edition2023_test.rs | ||
| enum_test.rs | ||
| extensions_test.rs | ||
| fields_with_imported_types_test.rs | ||
| gtest_matchers_test.rs | ||
| import_public_test.rs | ||
| message_copy_merge_test.rs | ||
| message_generics_test.rs | ||
| nested_types_test.rs | ||
| no_internal_access_test.rs | ||
| package_disambiguation_test.rs | ||
| package_test.rs | ||
| proto_macro_test.rs | ||
| serialization_test.rs | ||
| simple_nested_test.rs | ||
| threading_test.rs | ||