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, assert/cmp: un-deprecate assert.ErrorType for now #286

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

thaJeztah
Copy link
Contributor

Commit 043b579 deprecated these functions, marking assert.ErrorIs as a replacement. Unfortunately, assert.ErrorIs is not a drop-in replacement for various situations, or requires quite some additional boilerplating to be used.

This patch reverts the deprecation for now, but keeps recommendations in place to consider ErrorIs for situations that allow it.

Commit 043b579 deprecated these
functions, marking assert.ErrorIs as a replacement. Unfortunately,
assert.ErrorIs is not a drop-in replacement for various situations,
or requires quite some additional boilerplating to be used.

This patch reverts the deprecation for now, but keeps recommendations
in place to consider ErrorIs for situations that allow it.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Copy link
Member

@dnephin dnephin left a comment

Choose a reason for hiding this comment

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

Fair enough!

@dnephin dnephin merged commit 0b81523 into gotestyourself:main Sep 5, 2024
6 checks passed
@thaJeztah thaJeztah deleted the undeprecate_ErrorType branch September 5, 2024 06:35
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.

Discussion: cmp.ErrorIs is not a full replacement for cmp.ErrorType, but is now deprecated
2 participants