From 53411896ab2502720accffb2368245bb85f0b10b Mon Sep 17 00:00:00 2001 From: Hong Shin Date: Thu, 7 Dec 2023 09:46:15 -0800 Subject: [PATCH] Add coverage for default_string and default_bytes in test_default_accessors PiperOrigin-RevId: 588822948 --- rust/test/shared/accessors_test.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/test/shared/accessors_test.rs b/rust/test/shared/accessors_test.rs index ccd3d4629e..0fbb535ee5 100644 --- a/rust/test/shared/accessors_test.rs +++ b/rust/test/shared/accessors_test.rs @@ -33,6 +33,8 @@ fn test_default_accessors() { default_bool(): eq(true), }) ); + assert_that!(msg.default_string(), eq("hello")); + assert_that!(msg.default_bytes(), eq("world".as_bytes())); } #[test]