Skip to content

Commit

Permalink
internal/packagestest: fork go/packages/packagestest
Browse files Browse the repository at this point in the history
Also, update all imports outside of that package.

Updates golang/go#70229

Change-Id: I8b08f892ec86d560c0406319c2954eb9912d78ad
Reviewed-on: https://go-review.googlesource.com/c/tools/+/625920
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
  • Loading branch information
adonovan committed Nov 6, 2024
1 parent 0e9ed3d commit efcd2bd
Show file tree
Hide file tree
Showing 33 changed files with 1,862 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cmd/bundle/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"runtime"
"testing"

"golang.org/x/tools/go/packages/packagestest"
"golang.org/x/tools/internal/packagestest"
)

func TestBundle(t *testing.T) { packagestest.TestAll(t, testBundle) }
Expand Down
2 changes: 1 addition & 1 deletion cmd/godoc/godoc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"testing"
"time"

"golang.org/x/tools/go/packages/packagestest"
"golang.org/x/tools/internal/packagestest"
"golang.org/x/tools/internal/testenv"
)

Expand Down
2 changes: 1 addition & 1 deletion go/analysis/unitchecker/unitchecker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"golang.org/x/tools/go/analysis/passes/findcall"
"golang.org/x/tools/go/analysis/passes/printf"
"golang.org/x/tools/go/analysis/unitchecker"
"golang.org/x/tools/go/packages/packagestest"
"golang.org/x/tools/internal/packagestest"
)

func TestMain(m *testing.M) {
Expand Down
2 changes: 1 addition & 1 deletion go/buildutil/allpackages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"testing"

"golang.org/x/tools/go/buildutil"
"golang.org/x/tools/go/packages/packagestest"
"golang.org/x/tools/internal/packagestest"
)

func TestAllPackages(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go/buildutil/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"testing"

"golang.org/x/tools/go/buildutil"
"golang.org/x/tools/go/packages/packagestest"
"golang.org/x/tools/internal/packagestest"
)

func TestContainingPackage(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go/packages/overlay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"testing"

"golang.org/x/tools/go/packages"
"golang.org/x/tools/go/packages/packagestest"
"golang.org/x/tools/internal/packagestest"
"golang.org/x/tools/internal/testenv"
)

Expand Down
2 changes: 1 addition & 1 deletion go/packages/packages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"time"

"golang.org/x/tools/go/packages"
"golang.org/x/tools/go/packages/packagestest"
"golang.org/x/tools/internal/packagesinternal"
"golang.org/x/tools/internal/packagestest"
"golang.org/x/tools/internal/testenv"
"golang.org/x/tools/internal/testfiles"
)
Expand Down
2 changes: 1 addition & 1 deletion go/ssa/ssautil/load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"testing"

"golang.org/x/tools/go/packages"
"golang.org/x/tools/go/packages/packagestest"
"golang.org/x/tools/go/ssa"
"golang.org/x/tools/go/ssa/ssautil"
"golang.org/x/tools/internal/packagestest"
"golang.org/x/tools/internal/testenv"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/imports/fix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"sync/atomic"
"testing"

"golang.org/x/tools/go/packages/packagestest"
"golang.org/x/tools/internal/gocommand"
"golang.org/x/tools/internal/packagestest"
"golang.org/x/tools/internal/stdlib"
)

Expand Down
Loading

0 comments on commit efcd2bd

Please sign in to comment.