Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Commit

Permalink
glide, gopkg: update tests (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoops authored Nov 18, 2021
1 parent 8195a2c commit 095ff94
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 0 deletions.
44 changes: 44 additions & 0 deletions deplist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,31 @@ func BuildWant() []Dependency {
"unsafe",
}

glidePaths := []string{
"github.com/beorn7/perks",
"github.com/beorn7/perks/quantile",
"github.com/bgentry/speakeasy",
"github.com/boltdb/bolt",
"github.com/cockroachdb/cmux",
"github.com/coreos/go-semver",
"github.com/coreos/go-semver/semver",
"github.com/coreos/go-systemd",
"github.com/coreos/go-systemd/daemon",
"github.com/coreos/go-systemd/journal",
"github.com/coreos/go-systemd/util",
}

gopkgPaths := []string{
"github.com/BurntSushi/toml",
"github.com/aws/aws-sdk-go",
"github.com/aws/aws-sdk-go/aws",
"github.com/aws/aws-sdk-go/aws/awserr",
"github.com/aws/aws-sdk-go/aws/awsutil",
"github.com/aws/aws-sdk-go/aws/client",
"github.com/aws/aws-sdk-go/aws/client/metadata",
"github.com/aws/aws-sdk-go/aws/corehandlers",
}

npmSet1 := []string{
"loose-envify",
"iconv-lite",
Expand Down Expand Up @@ -208,6 +233,25 @@ func BuildWant() []Dependency {

deps[4].Version = "v0.3.3" // test golang.org/x/text/unicode version

for _, n := range glidePaths {
deps = append(deps, Dependency{
DepType: 1,
Path: n,
})
}

for i, n := range gopkgPaths {
ver := ""
if i > 0 {
ver = "v1.13.49"
}
deps = append(deps, Dependency{
DepType: 1,
Path: n,
Version: ver,
})
}

for _, n := range npmSet1 {
d := Dependency{
DepType: 3,
Expand Down
27 changes: 27 additions & 0 deletions test/testRepo/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions test/testRepo/glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 095ff94

Please sign in to comment.