Skip to content
New issue

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

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

Already on GitHub? # to your account

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

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant