github.com/gwaycc/gometalinter@v3.0.0+incompatible/regressiontests/golint_test.go (about)

     1  package regressiontests
     2  
     3  import "testing"
     4  
     5  func TestGolint(t *testing.T) {
     6  	t.Parallel()
     7  	source := `
     8  package test
     9  
    10  type Foo int
    11  `
    12  	expected := Issues{
    13  		{Linter: "golint", Severity: "warning", Path: "test.go", Line: 4, Col: 6, Message: "exported type Foo should have comment or be unexported"},
    14  	}
    15  	ExpectIssues(t, "golint", source, expected)
    16  }