github.com/nalekseevs/itns-golangci-lint@v1.0.2/test/linters_test.go (about) 1 package test 2 3 import ( 4 "path/filepath" 5 "testing" 6 7 "github.com/nalekseevs/itns-golangci-lint/test/testshared" 8 "github.com/nalekseevs/itns-golangci-lint/test/testshared/integration" 9 ) 10 11 const testdataDir = "testdata" 12 13 func TestSourcesFromTestdata(t *testing.T) { 14 integration.RunTestdata(t) 15 } 16 17 func TestTypecheck(t *testing.T) { 18 testshared.SkipOnWindows(t) 19 20 integration.RunTestSourcesFromDir(t, filepath.Join(testdataDir, "notcompiles")) 21 }