tests âââ testdata â âââ src â âââ a â â âââ a.go â â âââ a_test.go â â âââ ax_test.go â âââ b â â âââ b.go â âââ b_x_test â â âââ b_test.go â âââ divergent â âââ buf.go â âââ buf_test.go âââ tests.go âââ tests_test.go golang.org/x/tools/go/analysis/passes/tests ãã // tests_test.go func Test(t *testing.T) { testdata := analysistest.TestData() analysistest.Run(t, testdata, tests.Analyzer, "a", // loads "a", "a [a.test]", and "a.test" "b_x_test", // loads "b" and "b_x_test" "divergent", ) }