Debian Codegraph @

go/analysis/passes/loopclosure/loopclosure_test.go

raw symbols SCIP
1 // Copyright 2018 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package loopclosure_test
6
7 import (
8 "path/filepath"
9 "testing"
10
11 "golang.org/x/tools/go/analysis/analysistest"
12 "golang.org/x/tools/go/analysis/passes/loopclosure"
13 "golang.org/x/tools/internal/testfiles"
14 )
15
16 func TestVersions(t *testing.T) {
17 dir := testfiles.ExtractTxtarFileToTmp(t, filepath.Join(analysistest.TestData(), "src", "versions", "go22.txtar"))
18 analysistest.Run(t, dir, loopclosure.Analyzer, "golang.org/fake/versions")
19 }