some deletions
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / stylecheck / testdata / src / CheckHTTPStatusCodes / CheckHTTPStatusCodes.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/stylecheck/testdata/src/CheckHTTPStatusCodes/CheckHTTPStatusCodes.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/stylecheck/testdata/src/CheckHTTPStatusCodes/CheckHTTPStatusCodes.go
deleted file mode 100644 (file)
index 602be22..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// Package pkg ...
-package pkg
-
-import "net/http"
-
-func fn() {
-       // Check all the supported functions
-       http.Error(nil, "", 506)         // want `http\.StatusVariantAlsoNegotiates`
-       http.Redirect(nil, nil, "", 506) // want `http\.StatusVariantAlsoNegotiates`
-       http.StatusText(506)             // want `http\.StatusVariantAlsoNegotiates`
-       http.RedirectHandler("", 506)    // want `http\.StatusVariantAlsoNegotiates`
-
-       // Don't flag literals with no known constant
-       http.StatusText(600)
-
-       // Don't flag constants
-       http.StatusText(http.StatusAccepted)
-
-       // Don't flag items on the whitelist (well known codes)
-       http.StatusText(404)
-}