From 6f8662c6f996b8c75052010d9d57089f320d39cf Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Fri, 1 Nov 2024 12:22:49 -0700 Subject: [PATCH] Remove a few things from Rust OSS tests. PiperOrigin-RevId: 692256780 --- rust/test/cpp/debug_test.rs | 3 --- rust/test/shared/gtest_matchers_test.rs | 4 ---- 2 files changed, 7 deletions(-) diff --git a/rust/test/cpp/debug_test.rs b/rust/test/cpp/debug_test.rs index d1e50f9712..7878ab6a9f 100644 --- a/rust/test/cpp/debug_test.rs +++ b/rust/test/cpp/debug_test.rs @@ -10,7 +10,6 @@ fn test_debug() { msg.set_secret_user_data("password"); assert_that!(format!("{msg:?}"), contains_substring("id: 1")); - assert_that!(format!("{msg:?}"), not(contains_substring("password"))); } #[cfg(lite_runtime)] @@ -21,7 +20,6 @@ fn test_debug_lite() { msg.set_secret_user_data("password"); assert_that!(format!("{msg:?}"), contains_substring("MessageLite")); - assert_that!(format!("{msg:?}"), not(contains_substring("password"))); } /// A message with the option set to optimize for lite will behave as a lite @@ -32,5 +30,4 @@ fn test_optimize_for_lite_option() { let mut msg = OptimizeForLiteTestMessage::new(); msg.set_value("password"); assert_that!(format!("{msg:?}"), contains_substring("MessageLite")); - assert_that!(format!("{msg:?}"), not(contains_substring("password"))); } diff --git a/rust/test/shared/gtest_matchers_test.rs b/rust/test/shared/gtest_matchers_test.rs index 0cd09d260b..18931267a9 100644 --- a/rust/test/shared/gtest_matchers_test.rs +++ b/rust/test/shared/gtest_matchers_test.rs @@ -5,10 +5,6 @@ // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd -google3::import! { - "//third_party/protobuf/rust:protobuf_gtest_matchers"; -} - use googletest::prelude::*; use paste::paste; use protobuf::proto;