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

Commit

Permalink
Fix NonCanonicalImportRoot test
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfb committed Sep 10, 2017
1 parent 90d2a5e commit 1853dc3
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions internal/gps/pkgtree/pkgtree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1332,10 +1332,22 @@ func TestListPackages(t *testing.T) {
"non-canonical": {
fileRoot: j("canonical"),
importRoot: "noncanonical",
out: PackageTree{},
err: &NonCanonicalImportRoot{
out: PackageTree{
ImportRoot: "noncanonical",
Canonical: "canonical",
Packages: map[string]PackageOrErr{
"noncanonical": PackageOrErr{
Err: &NonCanonicalImportRoot{
ImportRoot: "noncanonical",
Canonical: "canonical",
},
},
"noncanonical/sub": PackageOrErr{
Err: &NonCanonicalImportRoot{
ImportRoot: "noncanonical",
Canonical: "canonical/subpackage",
},
},
},
},
},
}
Expand Down

0 comments on commit 1853dc3

Please sign in to comment.