Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 7cb0a0c

Browse files
Import internal/test in all packages with tests
This allows people to run go test ./... -update, without this in order to do a mass update of golden files you need to run the update against individual packages which is a huge pain.
1 parent 3b8fbe4 commit 7cb0a0c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

gps/paths/paths_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
package paths
66

7-
import "testing"
7+
import (
8+
"testing"
9+
10+
_ "github.com/golang/dep/internal/test" // DO NOT REMOVE, allows go test ./... -update to work
11+
)
812

913
func TestIsStandardImportPath(t *testing.T) {
1014
fix := []struct {

gps/pkgtree/pkgtree_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020

2121
"github.com/golang/dep/gps/paths"
2222
"github.com/golang/dep/internal/fs"
23+
_ "github.com/golang/dep/internal/test" // DO NOT REMOVE, allows go test ./... -update to work
2324
)
2425

2526
// PackageTree.ToReachMap() uses an easily separable algorithm, wmToReach(),

internal/feedback/feedback_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"testing"
1212

1313
"github.com/golang/dep/gps"
14+
_ "github.com/golang/dep/internal/test" // DO NOT REMOVE, allows go test ./... -update to work
1415
)
1516

1617
func TestFeedback_Constraint(t *testing.T) {

0 commit comments

Comments
 (0)