Skip to content

Remove unnecessary clones on tests - #297

Closed
FranciscoTGouveia wants to merge 1 commit into
marshallpierce:masterfrom
FranciscoTGouveia:remove-clones
Closed

Remove unnecessary clones on tests#297
FranciscoTGouveia wants to merge 1 commit into
marshallpierce:masterfrom
FranciscoTGouveia:remove-clones

Conversation

@FranciscoTGouveia

Copy link
Copy Markdown

As .clone() is being called on a fresh DecodeError::InvalidPadding, or DecodeSliceError::OutputSliceTooSmall, it can be safely removed.

CC @nunoplopes

@marshallpierce

Copy link
Copy Markdown
Owner

The intent of that module is to exercise unimportant code that otherwise would clutter up coverage reports. So, the clone() actually is meaningful, as a way to squelch indications that clone() isn't covered.

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.

2 participants