commit | 53411896ab2502720accffb2368245bb85f0b10b | [log] [tgz] |
---|---|---|
author | Hong Shin <hongshin@google.com> | Thu Dec 07 09:46:15 2023 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Dec 07 09:48:48 2023 -0800 |
tree | 031a625150a9a59d18aed179b9655817d326a9ed | |
parent | 8edf0bd6307a2a697645b06d91bb679af39cf5e7 [diff] |
Add coverage for default_string and default_bytes in test_default_accessors PiperOrigin-RevId: 588822948
diff --git a/rust/test/shared/accessors_test.rs b/rust/test/shared/accessors_test.rs index ccd3d46..0fbb535 100644 --- a/rust/test/shared/accessors_test.rs +++ b/rust/test/shared/accessors_test.rs
@@ -33,6 +33,8 @@ default_bool(): eq(true), }) ); + assert_that!(msg.default_string(), eq("hello")); + assert_that!(msg.default_bytes(), eq("world".as_bytes())); } #[test]