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

net/http/httptest: can't analysis code coverage with httptest #23485

Closed
imiskolee opened this issue Jan 19, 2018 · 1 comment
Closed

net/http/httptest: can't analysis code coverage with httptest #23485

imiskolee opened this issue Jan 19, 2018 · 1 comment

Comments

@imiskolee
Copy link

go -test -cover always return 0% when i run a httptest case。

i want get my resetful api code coverage,how?

What version of Go are you using (go version)?

go 1.9.2

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

mac

What did you do?

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

What did you expect to see?

What did you see instead?

@mvdan
Copy link
Member

mvdan commented Jan 19, 2018

For questions about Go, see https://golang.org/wiki/Questions.

@mvdan mvdan closed this as completed Jan 19, 2018
@mikioh mikioh changed the title can't analysis code coverage with httptest net/http/httptest: can't analysis code coverage with httptest Jan 26, 2018
@golang golang locked and limited conversation to collaborators Jan 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants