Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaces //cc/testutils:proto_matchers with a more complete copy of the internal versions from the protobuf library. For more context, see: https://github.com/google/googletest/issues/1761 #177

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link

Replaces //cc/testutils:proto_matchers with a more complete copy of the internal versions from the protobuf library. For more context, see: google/googletest#1761

Most immediately, this enables polymorphic proto matching from strings.

E.g., instead of saying

MyProto expected;
ASSERT_OK(ParseTextProto("[contents]", &expected);
EXPECT_THAT(result, EqualsProto(expected));

We can now say

EXPECT_THAT(result, EqualsProto("[contents]"));

@copybara-service copybara-service bot force-pushed the test_521847154 branch 2 times, most recently from 414d2f1 to ed8c5b2 Compare April 5, 2023 16:28
@copybara-service copybara-service bot closed this Apr 5, 2023
@copybara-service copybara-service bot deleted the test_521847154 branch April 5, 2023 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants