gitee.com/lonely0422/gometalinter.git@v3.0.1-0.20190307123442-32416ab75314+incompatible/regressiontests/lll_test.go (about) 1 package regressiontests 2 3 import "testing" 4 5 func TestLLL(t *testing.T) { 6 t.Parallel() 7 source := `package test 8 // This is a really long line full of text that is uninteresting in the extreme. Also we're just trying to make it here. 9 ` 10 expected := Issues{ 11 {Linter: "lll", Severity: "warning", Path: "test.go", Line: 2, Col: 0, Message: "line is 120 characters"}, 12 } 13 ExpectIssues(t, "lll", source, expected) 14 }