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

Remove invalid errors.As() usage, name test cases #177

Merged
merged 1 commit into from Jul 18, 2022

Conversation

atc0005
Copy link
Owner

@atc0005 atc0005 commented Jul 18, 2022

Remove errors.As() comparison logic until I can determine how to use a table test configuration to reliably assert that an expected error is of a specific type.

Tweak test failure message format slightly to improve readability.

Add name field to table test struct, move test name comments from each table test into name value (so that each test case is properly labeled in output).

Run each test case as a subtest in an effort to provide additional isolation.

fixes GH-176

Remove errors.As() comparison logic until I can determine how to use a
table test configuration to reliably assert that an expected error is
of a specific type.

Tweak test failure message format slightly to improve readability.

Add `name` field to table test struct, move test name comments from
each table test into name value (so that each test case is properly
labeled in output).

Run each test case as a subtest in an effort to provide additional
isolation.

refs GH-176
@atc0005 atc0005 added bug Something isn't working tests labels Jul 18, 2022
@atc0005 atc0005 added this to the v2.7.0 milestone Jul 18, 2022
@atc0005 atc0005 self-assigned this Jul 18, 2022
@atc0005 atc0005 merged commit 9b58fce into master Jul 18, 2022
@atc0005 atc0005 deleted the i176-fix-errors-as-second-argument-test-issue branch July 18, 2022 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

./send_test.go:238:8: second argument to errors.As should not be *error
1 participant