Debian Codegraph @

go/analysis/passes/copylock/copylock_test.go

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
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 copylock_testscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/copylock_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/copylockscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/copylock`/"
13 "golang.org/x/tools/internal/testfilesscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/testfiles`/"
14 )
15
16 func Testscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/copylock_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#) {
17 testdata := 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.()
•18 // TODO(mknyszek): Add "unfortunate" package once CL 627777 lands. That CL changes
19 // the internals of the sync package structures to carry an explicit noCopy to prevent
20 // problems from changes to the implementations of those structures, such as these
21 // tests failing, or a bad user experience.
22 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, testdata, copylockscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/copylock`/.Analyzerscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/copylock`/Analyzer., "a", "typeparams", "issue67787", "unfortunate")
23 }
24
25 func TestVersions22scip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/copylock_test`/TestVersions22().(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#) {
26 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.(), "src", "forstmt", "go22.txtar"))
27 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, copylockscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/copylock`/.Analyzerscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/copylock`/Analyzer., "golang.org/fake/forstmt")
28 }
29
30 func TestVersions21scip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/copylock_test`/TestVersions21().(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#) {
31 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.(), "src", "forstmt", "go21.txtar"))
32 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, copylockscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/copylock`/.Analyzerscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/copylock`/Analyzer., "golang.org/fake/forstmt")
33 }