github.com/alecthomas/golangci-lint@v1.4.2-0.20180609094924-581a3564ff68/pkg/result/processors/max_same_issues_test.go (about) 1 package processors 2 3 import ( 4 "testing" 5 6 "github.com/golangci/golangci-lint/pkg/result" 7 ) 8 9 func TestMaxSameIssues(t *testing.T) { 10 p := NewMaxSameIssues(1) 11 i1 := result.Issue{ 12 Text: "1", 13 } 14 i2 := result.Issue{ 15 Text: "2", 16 } 17 18 processAssertSame(t, p, i1) // ok 19 processAssertSame(t, p, i2) // ok: another 20 processAssertEmpty(t, p, i1) // skip 21 }