some deletions
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / staticcheck / testdata / src / CheckRegexps / CheckRegexps.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/CheckRegexps/CheckRegexps.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckRegexps/CheckRegexps.go
deleted file mode 100644 (file)
index e5338d0..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-package pkg
-
-import (
-       "log"
-       "regexp"
-)
-
-const c1 = `[`
-const c2 = `(abc)`
-
-var re1 = regexp.MustCompile(`ab\yef`) // want `error parsing regexp`
-var re2 = regexp.MustCompile(c1)       // want `error parsing regexp`
-var re3 = regexp.MustCompile(c2)
-var re4 = regexp.MustCompile(
-       c1, // want `error parsing regexp`
-)
-
-func fn() {
-       _, err := regexp.Compile(`foo(`) // want `error parsing regexp`
-       if err != nil {
-               panic(err)
-       }
-       if re2.MatchString("foo(") {
-               log.Println("of course 'foo(' matches 'foo('")
-       }
-
-       regexp.Match("foo(", nil)       // want `error parsing regexp`
-       regexp.MatchReader("foo(", nil) // want `error parsing regexp`
-       regexp.MatchString("foo(", "")  // want `error parsing regexp`
-}
-
-// must be a basic type to trigger SA4017 (in case of a test failure)
-type T string
-
-func (T) Fn() {}
-
-// Don't get confused by methods named init
-func (T) init() {}
-
-// this will become a synthetic init function, that we don't want to
-// ignore
-var _ = regexp.MustCompile("(") // want `error parsing regexp`