mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-07-29 07:30:34 -04:00
dev: add test for govet custom formatter
This commit is contained in:
parent
85dec0c61b
commit
fd825488bf
2 changed files with 76 additions and 0 deletions
test
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue