github.com/chenfeining/golangci-lint@v1.0.2-0.20230730162517-14c6c67868df/pkg/result/processors/max_from_linter_test.go (about)

     1  package processors
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/chenfeining/golangci-lint/pkg/config"
     7  	"github.com/chenfeining/golangci-lint/pkg/logutils"
     8  )
     9  
    10  func TestMaxFromLinter(t *testing.T) {
    11  	p := NewMaxFromLinter(1, logutils.NewStderrLog(logutils.DebugKeyEmpty), &config.Config{})
    12  	gosimple := newFromLinterIssue("gosimple")
    13  	gofmt := newFromLinterIssue("gofmt")
    14  	processAssertSame(t, p, gosimple)  // ok
    15  	processAssertSame(t, p, gofmt)     // ok: another
    16  	processAssertEmpty(t, p, gosimple) // skip
    17  }