blob: 6fac4f87ea48fc732be1a63d1a0b240a85341e02 [file] [log] [blame]
[short] skip
go test -cover ./coverblank
stdout 'coverage: 100.0% of statements'
-- coverblank/a.go --
package coverblank
func _() {
println("unreachable")
}
type X int
func (x X) Print() {
println(x)
}
func (x X) _() {
println("unreachable")
}
-- coverblank/a_test.go --
package coverblank
import "testing"
func TestX(t *testing.T) {
var x X
x.Print()
}