Remove a few things from Rust OSS tests.

PiperOrigin-RevId: 692256780
pull/19106/head
Protobuf Team Bot 5 months ago committed by Copybara-Service
parent a27f0c79d4
commit 6f8662c6f9
  1. 3
      rust/test/cpp/debug_test.rs
  2. 4
      rust/test/shared/gtest_matchers_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")));
}

@ -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;

Loading…
Cancel
Save