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

Commit

Permalink
listPackages to return a PackageTree
Browse files Browse the repository at this point in the history
Also add several more tests.
  • Loading branch information
sdboyer committed Jun 20, 2016
1 parent 685bf8f commit 511e7e5
Show file tree
Hide file tree
Showing 12 changed files with 307 additions and 74 deletions.
Empty file added _testdata/src/empty/.gitkeep
Empty file.
12 changes: 12 additions & 0 deletions _testdata/src/m1p/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package m1p

import (
"sort"

"github.com/sdboyer/vsolver"
)

var (
_ = sort.Strings
_ = vsolver.Solve
)
11 changes: 11 additions & 0 deletions _testdata/src/m1p/b.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package m1p

import (
"os"
"sort"
)

var (
_ = sort.Strings
_ = os.PathSeparator
)
12 changes: 12 additions & 0 deletions _testdata/src/nest/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package simple

import (
"sort"

"github.com/sdboyer/vsolver"
)

var (
_ = sort.Strings
_ = vsolver.Solve
)
12 changes: 12 additions & 0 deletions _testdata/src/nest/m1p/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package m1p

import (
"sort"

"github.com/sdboyer/vsolver"
)

var (
_ = sort.Strings
_ = vsolver.Solve
)
11 changes: 11 additions & 0 deletions _testdata/src/nest/m1p/b.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package m1p

import (
"os"
"sort"
)

var (
_ = sort.Strings
_ = os.PathSeparator
)
12 changes: 12 additions & 0 deletions _testdata/src/ren/m1p/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package m1p

import (
"sort"

"github.com/sdboyer/vsolver"
)

var (
_ = sort.Strings
_ = vsolver.Solve
)
11 changes: 11 additions & 0 deletions _testdata/src/ren/m1p/b.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package m1p

import (
"os"
"sort"
)

var (
_ = sort.Strings
_ = os.PathSeparator
)
12 changes: 12 additions & 0 deletions _testdata/src/ren/simple/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package simple

import (
"sort"

"github.com/sdboyer/vsolver"
)

var (
_ = sort.Strings
_ = vsolver.Solve
)
11 changes: 11 additions & 0 deletions _testdata/src/simpleallt/t_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package simple

import (
"math/rand"
"strconv"
)

var (
_ = rand.Int()
_ = strconv.Unquote
)
7 changes: 7 additions & 0 deletions analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ import (
"text/scanner"
)

type PackageTree map[string]PackageOrErr

type PackageOrErr struct {
P Package
Err error
}

var osList []string
var archList []string
var stdlib = make(map[string]struct{})
Expand Down
Loading

0 comments on commit 511e7e5

Please sign in to comment.