This repository has been archived by the owner on Feb 3, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ListPackages case w/slashes in root path
Not covering this basic aspect of how real project roots actually work allowed a windows bug to hide until real data came through - #146.
- Loading branch information
Showing
12 changed files
with
137 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/example/varied/namemismatch" | ||
"github.com/example/varied/otherpath" | ||
"github.com/example/varied/simple" | ||
) | ||
|
||
var ( | ||
_ = simple.S | ||
_ = nm.V | ||
_ = otherpath.O | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package m1p | ||
|
||
import ( | ||
"sort" | ||
|
||
"github.com/sdboyer/gps" | ||
) | ||
|
||
var ( | ||
M = sort.Strings | ||
_ = gps.Solve | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package m1p | ||
|
||
import ( | ||
"os" | ||
"sort" | ||
) | ||
|
||
var ( | ||
_ = sort.Strings | ||
_ = os.PathSeparator | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package main | ||
|
||
import ( | ||
"net/http" | ||
) | ||
|
||
var ( | ||
_ = http.Client | ||
) |
12 changes: 12 additions & 0 deletions
12
_testdata/src/github.com/example/varied/namemismatch/nm.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package nm | ||
|
||
import ( | ||
"os" | ||
|
||
"github.com/Masterminds/semver" | ||
) | ||
|
||
var ( | ||
V = os.FileInfo | ||
_ = semver.Constraint | ||
) |
5 changes: 5 additions & 0 deletions
5
_testdata/src/github.com/example/varied/otherpath/otherpath_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package otherpath | ||
|
||
import "github.com/example/varied/m1p" | ||
|
||
var O = m1p.M |
7 changes: 7 additions & 0 deletions
7
_testdata/src/github.com/example/varied/simple/another/another.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package another | ||
|
||
import "hash" | ||
|
||
var ( | ||
H = hash.Hash | ||
) |
7 changes: 7 additions & 0 deletions
7
_testdata/src/github.com/example/varied/simple/another/another_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package another | ||
|
||
import "encoding/binary" | ||
|
||
var ( | ||
_ = binary.PutVarint | ||
) |
5 changes: 5 additions & 0 deletions
5
_testdata/src/github.com/example/varied/simple/another/locals.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package another | ||
|
||
import "github.com/example/varied/m1p" | ||
|
||
var _ = m1p.M |
7 changes: 7 additions & 0 deletions
7
_testdata/src/github.com/example/varied/simple/locals.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package simple | ||
|
||
import "github.com/example/varied/simple/another" | ||
|
||
var ( | ||
_ = another.H | ||
) |
12 changes: 12 additions & 0 deletions
12
_testdata/src/github.com/example/varied/simple/simple.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package simple | ||
|
||
import ( | ||
"go/parser" | ||
|
||
"github.com/sdboyer/gps" | ||
) | ||
|
||
var ( | ||
_ = parser.ParseFile | ||
S = gps.Prepare | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters