Skip to content

Refactor hardcoded methods, emptyFmt and testutils #91

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

Merged
merged 16 commits into from
Sep 26, 2018
Merged

Conversation

ozerovandrei
Copy link
Contributor

Use standard HTTP method names from the net/http package.
Remove emptyFmt errors.
Refactor testutils handlers so it will use structure with parameters instead of many arguments in each handler. This structure is passed by pointer to prevent lots of copying.

Use single structure with parameters for each of the testutils handler.
Update all unit tests for the Resell API.
Remove shadowing of capabilities package in unit test and use
http.MethodGet instead of hardcoded value.
Use http.MethodPost instead of hardcoded value.
Use http package constants instead of hardcoded method names.
Fix emptyFmt errors.
Remove hardcoded method names and use http constants.
Remove shadowing of package name in unit tests and remove hardcoded
method names.
Remove hardcoded method names and use http constants.
Remove hardcoded method names and use http constants.
Remove hardcoded IPv4 type in the testing fixtures.
Remove hardcoded method names and use http constants.
Remove package name shadowing in tests.
Remove hardcoded method names and use http constants.
Fix emptyFmt error in request_opts.
Remove hardcoded method names and use http constants.
Remove hardcoded method names and use http constants.
Remove hardcoded method names and use http constants.
Remove shadowing of net/url package, fix emptyFmt error and rephrase
DoRequest inline comment.
Pass handler options by pointer to prevent copying of big structure in
tests.
Change status codes in UnmarshallError to StatusOK.
@ozerovandrei ozerovandrei merged commit be5ed20 into master Sep 26, 2018
@ozerovandrei ozerovandrei deleted the fix/critic branch September 26, 2018 11:01
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.

1 participant