Debian Codegraph @

go/analysis/passes/stdversion/stdversion_test.go

raw symbols SCIP
1 // Copyright 2024 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 stdversion_testscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/stdversion_test`/
6
7 import (
8 "path/filepathscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/"
9 "testingscip-go gomod github.com/golang/go/src go1.25.0 testing/"
10
11 "golang.org/x/tools/go/analysis/analysistestscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/analysistest`/"
12 "golang.org/x/tools/go/analysis/passes/stdversionscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/stdversion`/"
13 "golang.org/x/tools/internal/testenvscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/testenv`/"
14 "golang.org/x/tools/internal/testfilesscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/testfiles`/"
15 )
16
17 func Testscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/stdversion_test`/Test().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
18 testenvscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/testenv`/.NeedsGo1Pointscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/testenv`/NeedsGo1Point().(t, 23) // TODO(#68658): Waiting on 1.22 backport.
19
20 // The test relies on go1.21 std symbols, but the analyzer
21 // itself requires the go1.22 implementation of versions.FileVersions.
22 dir := testfilesscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/testfiles`/.ExtractTxtarFileToTmpscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/testfiles`/ExtractTxtarFileToTmp().(t, filepathscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/.Joinscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/Join().(analysistestscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/analysistest`/.TestDatascip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/analysistest`/TestData.(), "test.txtar"))
23 analysistestscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/analysistest`/.Runscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/analysistest`/Run().(t, dir, stdversionscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/stdversion`/.Analyzerscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/stdversion`/Analyzer.,
24 "example.com/basic",
25 "example.com/despite",
26 "example.com/mod20",
27 "example.com/mod21",
28 "example.com/mod22",
29 "example.com/old",
30 )
31 }