You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
Actual behavior A clear and concise description of what the bug is.
The package “github.com/golang/mock/sample/mock_user” is a mock file, This package shouldn't be calculated coverage. When I run "go test -coverpkg=./... github.com/golang/mock/sample --coverprofile=cover.out", this package will be calculated coverage and as uncovered
Expected behavior A clear and concise description of what you expected to happen.
The package “github.com/golang/mock/sample/mock_user” is a mock file, This package shouldn't be calculated coverage.
To Reproduce Steps to reproduce the behavior
1, Run this command:
go test -coverpkg=./... github.com/golang/mock/sample --coverprofile=cover.out
2, cat cover.out, the package "github.com/golang/mock/sample/mock_user” will be calculated coverage and as uncovered
Additional Information
gomock mode (reflect or source):
gomock version or git ref:
golang version:
go version go1.14 linux/amd64
a little more:
When this file " github.com/golang/mock/sample/mock_user/mock_user.go " was renamed to " github.com/golang/mock/sample/mock_user/mock_user_test.go " , this file will be identified as test file , and this problem will be sovled。 Triage Notes for the Maintainers
Actual behavior A clear and concise description of what the bug is.
The package “github.com/golang/mock/sample/mock_user” is a mock file, This package shouldn't be calculated coverage. When I run "go test -coverpkg=./... github.com/golang/mock/sample --coverprofile=cover.out", this package will be calculated coverage and as uncovered
Expected behavior A clear and concise description of what you expected to happen.
The package “github.com/golang/mock/sample/mock_user” is a mock file, This package shouldn't be calculated coverage.
To Reproduce Steps to reproduce the behavior
1, Run this command:
go test -coverpkg=./... github.com/golang/mock/sample --coverprofile=cover.out
2, cat cover.out, the package "github.com/golang/mock/sample/mock_user” will be calculated coverage and as uncovered
Additional Information
go version go1.14 linux/amd64
a little more:
When this file " github.com/golang/mock/sample/mock_user/mock_user.go " was renamed to " github.com/golang/mock/sample/mock_user/mock_user_test.go " , this file will be identified as test file , and this problem will be sovled。
Triage Notes for the Maintainers