dep-protobuf/rust/test/shared
Protobuf Team Bot e1c5f3ac47 rust protobuf matchers: Add a partially matcher to mirror C++
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
2026-08-13 09:24:36 -07:00
..
utf8 Set Rust edition 2024 for all protobuf and upb rust targets. 2026-06-23 11:29:41 -07:00
accessors_map_test.rs Add parity methods to Protobuf Repeated and Map 2026-05-05 08:00:20 -07:00
accessors_proto3_test.rs Change _opt() accessors to return an std::Option instead of protobuf::Optional 2026-03-13 08:31:00 -07:00
accessors_repeated_test.rs Remove iterator trait implementations for RepeatedMutIter 2026-08-12 09:57:23 -07:00
accessors_test.rs Close risk of RustProto UB in the face of a set Cord-typed field. 2026-07-27 06:26:08 -07:00
bad_names_test.rs Mangle types named XyzView if there is any direct sibling named Xyz 2026-03-26 15:15:22 -07:00
BUILD rust protobuf matchers: Add a partially matcher to mirror C++ 2026-08-13 09:24:36 -07:00
child_parent_test.rs Include more tests in protobuf_tests crate 2025-08-15 08:40:20 -07:00
ctype_cord_test.rs Fix a few Rust warnings 2025-08-15 09:15:05 -07:00
edition2023_test.rs Change _opt() accessors to return an std::Option instead of protobuf::Optional 2026-03-13 08:31:00 -07:00
enum_test.rs Include more tests in protobuf_tests crate 2025-08-15 08:40:20 -07:00
extensions_test.rs Added infrastructure for Rust Extensions support, but left it disabled for now. 2026-04-08 08:08:46 -07:00
fields_with_imported_types_test.rs Include more tests in protobuf_tests crate 2025-08-15 08:40:20 -07:00
gtest_matchers_test.rs rust protobuf matchers: Add a partially matcher to mirror C++ 2026-08-13 09:24:36 -07:00
import_public_test.rs Include more tests in protobuf_tests crate 2025-08-15 08:40:20 -07:00
message_copy_merge_test.rs Include more tests in protobuf_tests crate 2025-08-15 08:40:20 -07:00
message_generics_test.rs Make any &T impl AsView if T impl AsView 2026-03-13 12:35:19 -07:00
nested_types_test.rs Include more tests in protobuf_tests crate 2025-08-15 08:40:20 -07:00
no_internal_access_test.rs Upgrade to googletest 0.13 crate. 2024-12-13 14:03:59 -08:00
package_disambiguation_test.rs Stop codegenning module for .proto package 2024-01-19 09:35:46 -08:00
package_test.rs Include more tests in protobuf_tests crate 2025-08-15 08:40:20 -07:00
proto_macro_test.rs Add new protobuf_tests crate 2025-08-12 15:16:35 -07:00
serialization_test.rs RustProto: add serialized_len()->usize 2026-04-23 14:34:21 -07:00
simple_nested_test.rs Include more tests in protobuf_tests crate 2025-08-15 08:40:20 -07:00
threading_test.rs Make message Muts Send 2025-09-03 14:40:16 -07:00