X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fcoc-go-data%2Ftools%2Fpkg%2Fmod%2Fhonnef.co%2Fgo%2Ftools%40v0.0.1-2020.1.5%2Fstaticcheck%2Ftestdata%2Fsrc%2FCheckLeakyTimeTick%2FCheckLeakyTimeTick.go;fp=.config%2Fcoc%2Fextensions%2Fcoc-go-data%2Ftools%2Fpkg%2Fmod%2Fhonnef.co%2Fgo%2Ftools%40v0.0.1-2020.1.5%2Fstaticcheck%2Ftestdata%2Fsrc%2FCheckLeakyTimeTick%2FCheckLeakyTimeTick.go;h=0000000000000000000000000000000000000000;hp=d385c2a26e8afa3634c7e95576d01c530781aef5;hb=3ddadb3c98564791f0ac36cb39771d844a63dc91;hpb=5f797af6612ed10887189b47a1efc2f915586e59 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/CheckLeakyTimeTick/CheckLeakyTimeTick.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckLeakyTimeTick/CheckLeakyTimeTick.go deleted file mode 100644 index d385c2a2..00000000 --- a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckLeakyTimeTick/CheckLeakyTimeTick.go +++ /dev/null @@ -1,59 +0,0 @@ -package pkg - -import "time" - -func fn1() { - for range time.Tick(0) { - println("") - } -} - -func fn2() { - for range time.Tick(0) { // want `leaks the underlying ticker` - println("") - if true { - break - } - } -} - -func fn3() { - for range time.Tick(0) { // want `leaks the underlying ticker` - println("") - if true { - return - } - } -} - -func fn4() { - go func() { - for range time.Tick(0) { - println("") - } - }() -} - -func fn5() { - if false { - panic("foo") - } - for range time.Tick(0) { - println("") - } -} - - -type T struct{} - -func (t *T) foo() { - for range time.Tick(0) { - println("") - } -} - -func (t T) bar() { - for range time.Tick(0) { - println("") - } -}