19 lines
		
	
	
		
			474 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			474 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package processors
 | |
| 
 | |
| import (
 | |
| 	"testing"
 | |
| 
 | |
| 	"github.com/golangci/golangci-lint/pkg/config"
 | |
| 
 | |
| 	"github.com/golangci/golangci-lint/pkg/logutils"
 | |
| )
 | |
| 
 | |
| func TestMaxFromLinter(t *testing.T) {
 | |
| 	p := NewMaxFromLinter(1, logutils.NewStderrLog(""), &config.Config{})
 | |
| 	gosimple := newFromLinterIssue("gosimple")
 | |
| 	gofmt := newFromLinterIssue("gofmt")
 | |
| 	processAssertSame(t, p, gosimple)  // ok
 | |
| 	processAssertSame(t, p, gofmt)     // ok: another
 | |
| 	processAssertEmpty(t, p, gosimple) // skip
 | |
| }
 | 
