The test coverage is not collected correctly because -coverpkg is missing.
e.g. plumbing/object/commit_walker_file.go is 0% even though the functions in this file are called many times.
https://codecov.io/gh/src-d/go-git/tree/master/plumbing/object
plumbing/object/commit_walker_file.go is called in repository_test.go. At this time, if -coverpkg is not specified, the coverage of object package will not be collected.
In addition, after go 1.10, we may be able to use ./... with -cover.
The test coverage is not collected correctly because
-coverpkg
is missing. e.g.plumbing/object/commit_walker_file.go
is 0% even though the functions in this file are called many times. https://codecov.io/gh/src-d/go-git/tree/master/plumbing/objectplumbing/object/commit_walker_file.go
is called inrepository_test.go
. At this time, if-coverpkg
is not specified, the coverage ofobject
package will not be collected.In addition, after go 1.10, we may be able to use
./...
with-cover
.