.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.1.1 / stylecheck / lint_test.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/stylecheck/lint_test.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/stylecheck/lint_test.go
new file mode 100644 (file)
index 0000000..bb24cdd
--- /dev/null
@@ -0,0 +1,31 @@
+package stylecheck
+
+import (
+       "testing"
+
+       "honnef.co/go/tools/lint/testutil"
+)
+
+func TestAll(t *testing.T) {
+       checks := map[string][]testutil.Test{
+               "ST1000": {{Dir: "CheckPackageComment-1"}, {Dir: "CheckPackageComment-2"}},
+               "ST1001": {{Dir: "CheckDotImports"}},
+               "ST1003": {{Dir: "CheckNames"}, {Dir: "CheckNames_generated"}},
+               "ST1005": {{Dir: "CheckErrorStrings"}},
+               "ST1006": {{Dir: "CheckReceiverNames"}},
+               "ST1008": {{Dir: "CheckErrorReturn"}},
+               "ST1011": {{Dir: "CheckTimeNames"}},
+               "ST1012": {{Dir: "CheckErrorVarNames"}},
+               "ST1013": {{Dir: "CheckHTTPStatusCodes"}},
+               "ST1015": {{Dir: "CheckDefaultCaseOrder"}},
+               "ST1016": {{Dir: "CheckReceiverNamesIdentical"}},
+               "ST1017": {{Dir: "CheckYodaConditions"}},
+               "ST1018": {{Dir: "CheckInvisibleCharacters"}},
+               "ST1019": {{Dir: "CheckDuplicatedImports"}},
+               "ST1020": {{Dir: "CheckExportedFunctionDocs"}},
+               "ST1021": {{Dir: "CheckExportedTypeDocs"}},
+               "ST1022": {{Dir: "CheckExportedVarDocs"}},
+       }
+
+       testutil.Run(t, Analyzers, checks)
+}