github.com/ldez/golangci-lint@v1.10.1/pkg/result/processors/max_from_linter_test.go (about) 1 package processors 2 3 import ( 4 "testing" 5 6 "github.com/golangci/golangci-lint/pkg/logutils" 7 ) 8 9 func TestMaxFromLinter(t *testing.T) { 10 p := NewMaxFromLinter(1, logutils.NewStderrLog("")) 11 gosimple := newFromLinterIssue("gosimple") 12 gofmt := newFromLinterIssue("gofmt") 13 processAssertSame(t, p, gosimple) // ok 14 processAssertSame(t, p, gofmt) // ok: another 15 processAssertEmpty(t, p, gosimple) // skip 16 }