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 Pack test for ioutil.Discard #241

Merged
merged 1 commit into from
Apr 9, 2021
Merged

Remove Invalid Pack test for ioutil.Discard #241

merged 1 commit into from
Apr 9, 2021

Conversation

josephlr
Copy link
Member

@josephlr josephlr commented Apr 8, 2021

Fixes #240

The internal definition of ioutil.Discard is not stable, so we should
not be testing packing with such a value.

Also, the testEncodingInvalidSlices function is only used in a
single place, so I just moved its implementation into
TestEncodingPackTypeInvalid.

Signed-off-by: Joe Richey joerichey@google.com

Copy link
Member

@chrisfenner chrisfenner left a comment

Choose a reason for hiding this comment

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

Nit: Typo in PR subject: Inavlid->Invalid

The internal definition of ioutil.Discard is not stable, so we should
not be testing packing with such a value.

Also, the `testEncodingInvalidSlices` function is only used in a
single place, so I just moved its implementation into
`TestEncodingPackTypeInvalid`.

Signed-off-by: Joe Richey <joerichey@google.com>
@josephlr josephlr changed the title Remove Inavlid Pack test for ioutil.Discard Remove Invalid Pack test for ioutil.Discard Apr 9, 2021
@josephlr josephlr merged commit d331077 into master Apr 9, 2021
@josephlr josephlr deleted the packing branch April 9, 2021 08:21
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.

Tests fail on curent master
2 participants