]> Cypherpunks repositories - gostls13.git/commit
cmd/cover: do not report coverage for assembly functions
authorRuss Cox <rsc@golang.org>
Fri, 10 Nov 2017 04:58:42 +0000 (23:58 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 16 Nov 2017 01:41:51 +0000 (01:41 +0000)
commit08270c3e18673f7f1319dce9d27d84c9a4c8eb49
tree198476dc9b50351e11983210d101037dc67c2587
parent2a39d1e96a8d37d14ff23a2eb3ffc5b584a17cb6
cmd/cover: do not report coverage for assembly functions

cover -func mode was reporting a coverage for function
declarations without bodies - assembly functions.
Since we are not annotating their code, we have no data
for those functions and should not report them at all.

Fixes #6880.

Change-Id: I4b8cd90805accf61f54e3ee167f54f4dc10c7c59
Reviewed-on: https://go-review.googlesource.com/77152
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/cover/func.go
src/cmd/go/go_test.go
src/cmd/go/testdata/src/coverasm/p.go [new file with mode: 0644]
src/cmd/go/testdata/src/coverasm/p.s [new file with mode: 0644]
src/cmd/go/testdata/src/coverasm/p_test.go [new file with mode: 0644]