Enable all //rust/... tests on GHA.

PiperOrigin-RevId: 694218823
pull/19097/head
Protobuf Team Bot 3 months ago committed by Copybara-Service
parent 6dd1247cf2
commit 826ce66117
  1. 4
      .github/workflows/test_rust.yml
  2. 14
      rust/test/shared/ctype_cord_test.rs

@ -29,9 +29,7 @@ jobs:
bazel-cache: rust_linux
bazel: >-
test --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --@rules_rust//rust/settings:experimental_use_cc_common_link=True
//rust:all
//rust/test/cpp/interop/...
//rust/test/rust_proto_library_unit_test:rust_upb_aspect_test
//rust/...
//src/google/protobuf/compiler/rust/...
- name: Run Cargo tests
uses: protocolbuffers/protobuf-ci/bazel-docker@v3

@ -9,20 +9,6 @@ use googletest::prelude::*;
use unittest_rust_proto::{TestAllTypes, TestCord};
#[gtest]
fn test_string_cord() {
let mut msg = TestAllTypes::new();
assert_that!(msg.has_optional_cord(), eq(false));
assert_that!(msg.optional_cord(), eq(""));
msg.set_optional_cord("hello");
assert_that!(msg.has_optional_cord(), eq(true));
assert_that!(msg.optional_cord(), eq("hello"));
let mut msg2 = TestAllTypes::new();
msg2.set_optional_cord(msg.optional_cord());
assert_that!(msg2.optional_cord(), eq("hello"));
}
#[gtest]
fn test_bytes_cord() {
let mut msg = TestCord::new();

Loading…
Cancel
Save