1 2 3 4 5 6 7 8 9 10 11 12 13 14
package gocapturedrefrace_test import ( "testing" "golang.org/x/tools/go/analysis/analysistest" "gopkg.teddywing.com/gocapturedrefrace" ) func Test(t *testing.T) { testdata := analysistest.TestData() analysistest.Run(t, testdata, gocapturedrefrace.Analyzer, ".") }