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

Commit

Permalink
Shift varied/otherpath imports to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sdboyer committed Jul 1, 2016
1 parent 1b09fc4 commit 91c4f8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions analysis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,8 @@ func TestListPackages(t *testing.T) {
ImportPath: "varied/otherpath",
CommentPath: "",
Name: "otherpath",
Imports: []string{
Imports: []string{},
TestImports: []string{
"varied/m1p",
},
},
Expand Down Expand Up @@ -576,7 +577,6 @@ func TestListPackages(t *testing.T) {
} else {
if !reflect.DeepEqual(perr, operr) {
t.Errorf("listPackages(%q): PkgOrErr for path %s was not as expected:\n\t(GOT): %s\n\t(WNT): %s", name, path, operr, perr)

}
}
}
Expand Down Expand Up @@ -628,7 +628,7 @@ func TestListExternalImports(t *testing.T) {
"sort",
}

// helper to rewrite expect, except for a couple packages
// helper to rewrite expect, except for a couple packages
//
// this makes it easier to see what we're taking out on each test
except := func(not ...string) {
Expand Down

0 comments on commit 91c4f8a

Please sign in to comment.