☰
Debian Codegraph
@
2026.2.1-1
2026.1-4
2026.1-3
/
/
staticcheck
/
sa3000
/
testdata
/
go1.4
/
CheckTestMainExit-4
/
CheckTestMainExit-4.go
☽
☼
staticcheck/sa3000/testdata/go1.4/CheckTestMainExit-4/CheckTestMainExit-4.go
code
plain
raw
Expat
2016-2017 Dominik Honnef
debian/copyright
1
package pkg
2
3
import (
4
"os"
5
"testing"
6
)
7
8
func helper() { os.Exit(1) }
9
10
func TestMain(m *testing.M) { //@ diag(`should call os.Exit`)
11
// FIXME(dominikh): this is a false positive
12
m.Run()
13
helper()
14
}