dev: add test for govet custom formatter

This commit is contained in:
Denis Isaev 2019-03-18 00:31:30 +03:00
parent 85dec0c61b
commit fd825488bf
No known key found for this signature in database
GPG key ID: A36A0EC8E27A1A01
2 changed files with 76 additions and 0 deletions

View file

@ -63,6 +63,10 @@ func TestUnsafeOk(t *testing.T) {
testshared.NewLintRunner(t).Run("--enable-all", getTestDataDir("unsafe")).ExpectNoIssues()
}
func TestGovetCustomFormatter(t *testing.T) {
testshared.NewLintRunner(t).Run(getTestDataDir("govet_custom_formatter")).ExpectNoIssues()
}
func TestSkippedDirsNoMatchArg(t *testing.T) {
dir := getTestDataDir("skipdirs", "skip_me", "nested")
r := testshared.NewLintRunner(t).Run("--print-issued-lines=false", "--no-config", "--skip-dirs", dir, "-Egolint", dir)