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

http-const: suggest http package constants in HTTP asserts #141

Open
Antonboom opened this issue Jun 21, 2024 · 0 comments · May be fixed by #155
Open

http-const: suggest http package constants in HTTP asserts #141

Antonboom opened this issue Jun 21, 2024 · 0 comments · May be fixed by #155
Labels
enhancement New feature or request

Comments

@Antonboom
Copy link
Owner

assert.HTTPStatusCode(t, handler, "GET", "/index", nil, 200)
     assert.HTTPBodyContains(t, handler, "GET", "/index", nil, "counter")
     // etc.assert.HTTPStatusCode(t, handler, http.MethodGet, "/index", nil, http.StatusOK)
     assert.HTTPBodyContains(t, handler, http.MethodGet, "/index", nil, "counter")

Is similar to the usestdlibvars linter.

@Antonboom Antonboom added the enhancement New feature or request label Jun 21, 2024
@mmorel-35 mmorel-35 linked a pull request Jun 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant