Commit d44ffa0
committed
test: show code coverage numbers per function
We have added a visualization of code coverage in Coveralls, but
sometimes it is convenient to show percents of covered statements
locally without pushing to remote branch and running CI.
Example of output:
$ go tool cover -func=coverage.out
github.com/tarantool/go-tarantool/auth.go:8: scramble 90.9%
github.com/tarantool/go-tarantool/auth.go:36: xor 100.0%
github.com/tarantool/go-tarantool/client_tools.go:13: EncodeMsgpack 100.0%
github.com/tarantool/go-tarantool/client_tools.go:25: EncodeMsgpack 100.0%
github.com/tarantool/go-tarantool/client_tools.go:37: EncodeMsgpack 0.0%
github.com/tarantool/go-tarantool/client_tools.go:49: EncodeMsgpack 0.0%
github.com/tarantool/go-tarantool/client_tools.go:63: EncodeMsgpack 0.0%
github.com/tarantool/go-tarantool/client_tools.go:78: EncodeMsgpack 0.0%
github.com/tarantool/go-tarantool/connection.go:67: Report 0.0%
...1 parent 5446423 commit d44ffa0
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
0 commit comments