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

fix(equalto): go-cmp opts were not passed to failure diff #17

Merged
merged 1 commit into from
May 18, 2024

Conversation

arikkfir
Copy link
Owner

This change passes any given go-cmp Opt instances to the cmp.Diff call and not only to the cmp.Equal function.

This fixes a potential panic that can happen when structs with unexported fields are given as actual & expected values.

This change passes any given go-cmp Opt instances to the `cmp.Diff` call
and not only to the cmp.Equal function.

This fixes a potential panic that can happen when structs with
unexported fields are given as actual & expected values.
@arikkfir arikkfir added the bug Something isn't working label May 18, 2024
@arikkfir arikkfir self-assigned this May 18, 2024
@arikkfir arikkfir merged commit 2e914a3 into main May 18, 2024
4 checks passed
@arikkfir arikkfir deleted the fix/use-cmp-opts-for-diff-in-equal-matcher branch May 18, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant