blob: e8c984f272c33bbf95b8c1c2eb1f8427a76a2d6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
[short] skip
! go test -x coverbad
! stderr '[\\/]coverbad\.test( |$)' # 'go test' should not claim to have run the test.
stderr 'undefined: g'
[cgo] stderr 'undefined: j'
-- go.mod --
module coverbad
go 1.16
-- p.go --
package p
func f() {
g()
}
-- p1.go --
package p
import "C"
func h() {
j()
}
-- p_test.go --
package p
import "testing"
func Test(t *testing.T) {}
|