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

testing: -cover mode gives strange error when package contains no non test files #6065

Closed
davecheney opened this issue Aug 7, 2013 · 2 comments
Milestone

Comments

@davecheney
Copy link
Contributor

What steps will reproduce the problem?

odessa(~/src) % mkdir issue
odessa(~/src) % cd issue
odessa(~/src/issue) % echo "package issue" > issue_test.go

What is the expected output? What do you see instead?

odessa(~/src/issue) % go test -cover
# testmain
/var/folders/7q/5n_khbqj5z716gk0zvtywgv80000gn/T/go-build881215944/issue/_test/_testmain.go:11:
imported and not used: "issue"
FAIL    issue [build failed]
odessa(~/src/issue) % 

Please use labels and text to provide additional information.

odessa(~/src/issue) % uname -a
Darwin odessa.local 12.4.0 Darwin Kernel Version 12.4.0: Wed May  1 17:57:12 PDT 2013;
root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
odessa(~/src/issue) % go version
go version devel +ae81458f37d7 Tue Jul 30 04:31:15 2013 +0200 darwin/amd64
@robpike
Copy link
Contributor

robpike commented Aug 8, 2013

Comment 1:

Owner changed to @robpike.

@robpike
Copy link
Contributor

robpike commented Aug 15, 2013

Comment 2:

This issue was closed by revision f718036.

Status changed to Fixed.

@rsc rsc added this to the Go1.2 milestone Apr 14, 2015
@rsc rsc removed the go1.2maybe label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc unassigned robpike Jun 22, 2022
This issue was closed.
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

4 participants