projects
/
dotfiles
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Giant blob of minor changes
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
coc-go-data
/
tools
/
pkg
/
mod
/
honnef.co
/
go
/
tools@v0.0.1-2020.1.5
/
staticcheck
/
testdata
/
src
/
CheckTestMainExit-4
/
CheckTestMainExit-4.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckTestMainExit-4/CheckTestMainExit-4.go
b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckTestMainExit-4/CheckTestMainExit-4.go
new file mode 100644
(file)
index 0000000..
b09399e
--- /dev/null
+++ b/
.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckTestMainExit-4/CheckTestMainExit-4.go
@@ -0,0
+1,14
@@
+package pkg
+
+import (
+ "os"
+ "testing"
+)
+
+func helper() { os.Exit(1) }
+
+func TestMain(m *testing.M) { // want `should call os\.Exit`
+ // FIXME(dominikh): this is a false positive
+ m.Run()
+ helper()
+}