Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add a matcher to test cel::StructValue against a protobuf message. #789

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

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

copybara-service[bot]
Copy link

Add a matcher to test cel::StructValue against a protobuf message.

This facilitates testing the content of a StructValue when its type matches a protobuf message, instead of testing every individual field.

Example usage:

ASSERT_THAT(l, StructValueAsProto(EqualsProto("my_int: 42")));

@copybara-service copybara-service bot force-pushed the test_646191570 branch 2 times, most recently from ce3a5e8 to 6dfc7d5 Compare June 25, 2024 16:52
This facilitates testing the content of a StructValue when its type matches a protobuf message, instead of testing every individual field.

Example usage:

ASSERT_THAT(l, StructValueAsProto<MyMessage>(EqualsProto("my_int: 42")));

PiperOrigin-RevId: 646520160
@copybara-service copybara-service bot merged commit 9935c3e into master Jun 25, 2024
@copybara-service copybara-service bot deleted the test_646191570 branch June 25, 2024 17:14
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.

1 participant