1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:14:42 -07:00
go/cmd/cover
Fatih Arslan ba91af23b8 cmd/cover: add start lines numbers to each function in -func mode
This CL aims to fix the problem described here:

https://groups.google.com/forum/#!topic/golang-nuts/R6ms1n9KjiY

This makes it easier to parse via external tools such as editors. Editors can
show each function in a list and jump directly to each function with this
additional information. This pattern can be seen in other Go tools such as "go
test" in the form of:

--- FAIL: TestCover (0.52 seconds)
        cover_test.go:43: example error

LGTM=adg
R=r, adg, josharian, dave
CC=golang-codereviews
https://golang.org/cl/131820043
2014-08-21 16:28:12 -07:00
..
testdata go.tools/cmd/cover: for range loops might contain function literals 2013-10-11 10:32:36 -07:00
cover_test.go go.tools/cmd/cover: fix build 2013-06-21 14:47:04 -07:00
cover.go go.tools/cmd/cover: don't assume code is gofmt'd 2014-08-20 11:14:50 -07:00
doc.go go.tools/cmd/cover: move docs to separate doc.go 2013-10-11 09:13:58 +09:00
func.go cmd/cover: add start lines numbers to each function in -func mode 2014-08-21 16:28:12 -07:00
html.go cmd/cover: show file coverage in HTML drop down 2014-08-12 09:22:11 +10:00