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

assert.EqualExportedValues: accepts everything #1586

Conversation

redachl
Copy link
Contributor

@redachl redachl commented Apr 11, 2024

Remove type validation in EqualExportedValues

See #1584.

@redachl redachl marked this pull request as ready for review April 11, 2024 22:58
@dolmen dolmen changed the title fix/equal-exported-values-accepts-everything assert.EqualExportedValues: accepts everything May 16, 2024
@dolmen dolmen added assert.EqualValues About equality pkg-assert Change related to package testify/assert enhancement labels May 16, 2024
Copy link
Contributor

@HaraldNordgren HaraldNordgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I wrote a big part of that function. For me, it was never intended to not work for this use case.

Let's merge this @dolmen?

Copy link
Collaborator

@brackendawson brackendawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I think the existing doc string for EqualExportedValues is approprioate. In fact I think this code is a more faithful implementation of the documented promise.

It works, I've tried to break it. It is well tested.

Going to allow a little time for other maintainers to review.

@brackendawson brackendawson merged commit 7efaf15 into stretchr:master Oct 23, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assert.EqualValues About equality enhancement pkg-assert Change related to package testify/assert
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants