aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-01-30 11:43:05 +0700
committerShulhan <ms@kilabit.info>2022-01-30 11:43:05 +0700
commit1cf06e6b9d8254600ff997c681f36514a501afa4 (patch)
tree429f433ba9ddd10978cb7668405adeec9bd885b1
parentd07445081f511dd2abb559971f2fb399793b95cf (diff)
downloadbeku-1cf06e6b9d8254600ff997c681f36514a501afa4.tar.xz
go.mod: update all dependencies
This changes affect code that use lib/test.Assert().
-rw-r--r--cmd/beku/command_test.go14
-rw-r--r--common_test.go10
-rw-r--r--env_test.go34
-rw-r--r--go.mod6
-rw-r--r--go.sum39
-rw-r--r--package_git_test.go16
-rw-r--r--package_test.go48
7 files changed, 95 insertions, 72 deletions
diff --git a/cmd/beku/command_test.go b/cmd/beku/command_test.go
index e2ca749..92f922f 100644
--- a/cmd/beku/command_test.go
+++ b/cmd/beku/command_test.go
@@ -256,11 +256,11 @@ func TestParseFlags(t *testing.T) {
err := cmd.parseFlags(c.args)
if err != nil {
- test.Assert(t, "err", c.expErr, err.Error(), true)
+ test.Assert(t, "err", c.expErr, err.Error())
continue
}
- test.Assert(t, "cmd", c.expCmd, cmd, true)
+ test.Assert(t, "cmd", c.expCmd, cmd)
}
}
@@ -317,16 +317,16 @@ func TestNewCommand(t *testing.T) {
cmd, err := newCommand()
if err != nil {
- test.Assert(t, "err", c.expErr, err.Error(), true)
+ test.Assert(t, "err", c.expErr, err.Error())
build.Default.GOPATH = orgGOPATH
os.Args = orgArgs
continue
}
- test.Assert(t, "command.op", c.expCmd.op, cmd.op, true)
- test.Assert(t, "command.pkgs", c.expCmd.pkgs, cmd.pkgs, true)
- test.Assert(t, "command.syncInto", c.expCmd.syncInto, cmd.syncInto, true)
- test.Assert(t, "command.firstTime", c.expCmd.firstTime, cmd.firstTime, true)
+ test.Assert(t, "command.op", c.expCmd.op, cmd.op)
+ test.Assert(t, "command.pkgs", c.expCmd.pkgs, cmd.pkgs)
+ test.Assert(t, "command.syncInto", c.expCmd.syncInto, cmd.syncInto)
+ test.Assert(t, "command.firstTime", c.expCmd.firstTime, cmd.firstTime)
build.Default.GOPATH = orgGOPATH
os.Args = orgArgs
diff --git a/common_test.go b/common_test.go
index 8e13fa4..0ca0fea 100644
--- a/common_test.go
+++ b/common_test.go
@@ -49,7 +49,7 @@ func TestGetCompareURL(t *testing.T) {
got := GetCompareURL(c.remoteURL, c.oldVer, c.newVer)
- test.Assert(t, "", c.exp, got, true)
+ test.Assert(t, "", c.exp, got)
}
}
@@ -96,7 +96,7 @@ func TestIsIgnoredDir(t *testing.T) {
for _, c := range cases {
t.Log(c)
got = IsIgnoredDir(c.name)
- test.Assert(t, "", c.exp, got, true)
+ test.Assert(t, "", c.exp, got)
}
}
@@ -131,7 +131,7 @@ func TestIsTagVersion(t *testing.T) {
got = IsTagVersion(c.ver)
- test.Assert(t, "", c.exp, got, true)
+ test.Assert(t, "", c.exp, got)
}
}
@@ -164,7 +164,7 @@ func TestParsePkgVersion(t *testing.T) {
gotPkg, gotVer = parsePkgVersion(c.pkgName)
- test.Assert(t, "package name", c.expPkg, gotPkg, true)
- test.Assert(t, "version", c.expVer, gotVer, true)
+ test.Assert(t, "package name", c.expPkg, gotPkg)
+ test.Assert(t, "version", c.expVer, gotVer)
}
}
diff --git a/env_test.go b/env_test.go
index 249d321..9c565f1 100644
--- a/env_test.go
+++ b/env_test.go
@@ -42,8 +42,8 @@ func TestEnvAddExclude(t *testing.T) {
got := testEnv.addExclude(c.exclude)
- test.Assert(t, "expExclude", c.expExclude, testEnv.pkgsExclude, true)
- test.Assert(t, "expReturn", c.expReturn, got, true)
+ test.Assert(t, "expExclude", c.expExclude, testEnv.pkgsExclude)
+ test.Assert(t, "expReturn", c.expReturn, got)
}
}
@@ -164,9 +164,9 @@ func TestEnvExclude(t *testing.T) {
testEnv.Exclude(c.excludes)
- test.Assert(t, "exp excludes", c.expExclude, testEnv.pkgsExclude, true)
- test.Assert(t, "pkgs length", c.expPkgsLen, len(testEnv.pkgs), true)
- test.Assert(t, "pkgs missing", c.expMissing, testEnv.pkgsMissing, true)
+ test.Assert(t, "exp excludes", c.expExclude, testEnv.pkgsExclude)
+ test.Assert(t, "pkgs length", c.expPkgsLen, len(testEnv.pkgs))
+ test.Assert(t, "pkgs missing", c.expMissing, testEnv.pkgsMissing)
if c.expPkg == nil {
continue
@@ -174,7 +174,7 @@ func TestEnvExclude(t *testing.T) {
_, got := testEnv.GetPackageFromDB(c.expPkg.ImportPath, "")
- test.Assert(t, "expPkg", c.expPkg, got, true)
+ test.Assert(t, "expPkg", c.expPkg, got)
}
err = testEnv.Save(testDBSaveExclude)
@@ -212,7 +212,7 @@ func TestEnvLoad(t *testing.T) {
err = testEnv.Load(c.file)
if err != nil {
- test.Assert(t, "err", c.expErr, err.Error(), true)
+ test.Assert(t, "err", c.expErr, err.Error())
continue
}
}
@@ -277,7 +277,7 @@ func TestEnvGetPackageFromDB(t *testing.T) {
_, got := testEnv.GetPackageFromDB(c.importPath, c.remoteURL)
- test.Assert(t, "", c.exp, got, true)
+ test.Assert(t, "", c.exp, got)
}
}
@@ -360,8 +360,8 @@ github.com/ksubedi/gomove 0.2.17
stdout := mock.Output()
stderr := mock.Error()
- test.Assert(t, "expStdout", c.expStdout, stdout, true)
- test.Assert(t, "expStderr", c.expStderr, stderr, true)
+ test.Assert(t, "expStdout", c.expStdout, stdout)
+ test.Assert(t, "expStderr", c.expStderr, stderr)
}
}
@@ -406,7 +406,7 @@ func TestEnvFilterUnusedDeps(t *testing.T) {
unused := make(map[string]bool)
testEnv.filterUnusedDeps(pkg, unused)
- test.Assert(t, "exp unused", c.exp, unused, true)
+ test.Assert(t, "exp unused", c.exp, unused)
}
}
@@ -440,7 +440,7 @@ func TestEnvSave(t *testing.T) {
_, err = os.Stat(c.file)
if err != nil {
- test.Assert(t, "expStatErr", c.expStatErr, err.Error(), true)
+ test.Assert(t, "expStatErr", c.expStatErr, err.Error())
continue
}
@@ -482,8 +482,8 @@ func TestEnvUpdateMissing(t *testing.T) {
_, got := testEnv.GetPackageFromDB(c.expPkg, "")
- test.Assert(t, "expDeps", c.expDeps, got.Deps, true)
- test.Assert(t, "expMissing", c.expMissing, got.DepsMissing, true)
+ test.Assert(t, "expDeps", c.expDeps, got.Deps)
+ test.Assert(t, "expMissing", c.expMissing, got.DepsMissing)
}
}
@@ -520,8 +520,8 @@ func TestEnvScan(t *testing.T) {
continue
}
- test.Assert(t, "expPkgs", c.expPkgs, testEnv.pkgs, true)
- test.Assert(t, "expMissing", c.expMissing, testEnv.pkgsMissing, true)
+ test.Assert(t, "expPkgs", c.expPkgs, testEnv.pkgs)
+ test.Assert(t, "expMissing", c.expMissing, testEnv.pkgsMissing)
}
}
@@ -541,7 +541,7 @@ func TestEnvSync(t *testing.T) {
err := testEnv.Sync(c.pkgName, c.importPath)
if err != nil {
- test.Assert(t, "err", c.expErr, err.Error(), true)
+ test.Assert(t, "err", c.expErr, err.Error())
continue
}
}
diff --git a/go.mod b/go.mod
index 795b264..57d4406 100644
--- a/go.mod
+++ b/go.mod
@@ -1,8 +1,10 @@
module github.com/shuLhan/beku
require (
- github.com/shuLhan/share v0.7.1-0.20190624170642-4f257f0cf1b7
- golang.org/x/tools v0.0.0-20190608022120-eacb66d2a7c3
+ github.com/shuLhan/share v0.33.0
+ golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
+ golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27 // indirect
+ golang.org/x/tools v0.1.9
)
go 1.11
diff --git a/go.sum b/go.sum
index 7af7b00..fefc7b2 100644
--- a/go.sum
+++ b/go.sum
@@ -1,13 +1,38 @@
-github.com/shuLhan/share v0.7.1-0.20190624170642-4f257f0cf1b7 h1:67+MB7ofeHpo6YcE2vOIiyBA2GDC1V9xahRXp8CpvI4=
-github.com/shuLhan/share v0.7.1-0.20190624170642-4f257f0cf1b7/go.mod h1:p2/wsQ00pX/F1ysg+tXaix99ca2poS7iiWd6WWcVnuI=
+github.com/shuLhan/share v0.33.0 h1:fM/yLmAzqMECP3Gp1lFH/l4zH1UZVCvgn8BLuPI2Dnc=
+github.com/shuLhan/share v0.33.0/go.mod h1:6YvVpuViRgLm4e+8AIh1izGaWgV5lyuj53H19GKCZzI=
+github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
-golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20211202192323-5770296d904e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
+golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
+golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
+golang.org/x/net v0.0.0-20211201190559-0a0e4e1bb54c/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
+golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
+golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190614084037-d442b75600c5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27 h1:XDXtA5hveEEV8JB2l7nhMTp3t3cHp9ZpwcdjqyEWLlo=
+golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
+golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
-golang.org/x/tools v0.0.0-20190608022120-eacb66d2a7c3 h1:sU3tSV6wDhWsvf9NjL0FzRjgAmYnQL5NEhdmcN16UEg=
-golang.org/x/tools v0.0.0-20190608022120-eacb66d2a7c3/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
+golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.1.9 h1:j9KsMiaP1c3B0OTQGth0/k+miLGTgLsAFUCrF2vLcF8=
+golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
+golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
diff --git a/package_git_test.go b/package_git_test.go
index 4a0e2f6..01224d2 100644
--- a/package_git_test.go
+++ b/package_git_test.go
@@ -31,12 +31,12 @@ func TestGitScan(t *testing.T) {
err = testGitPkgCur.Scan()
if err != nil {
- test.Assert(t, "err", c.expErr, err, true)
+ test.Assert(t, "err", c.expErr, err)
continue
}
- test.Assert(t, "Version", c.expVersion, testGitPkgCur.Version, true)
- test.Assert(t, "isTag", c.expIsTag, testGitPkgCur.isTag, true)
+ test.Assert(t, "Version", c.expVersion, testGitPkgCur.Version)
+ test.Assert(t, "isTag", c.expIsTag, testGitPkgCur.isTag)
}
}
@@ -56,13 +56,11 @@ func TestGitScanDeps(t *testing.T) {
err = testGitPkgCur.ScanDeps(testEnv)
if err != nil {
- test.Assert(t, "err", c.expErr, err.Error(), true)
+ test.Assert(t, "err", c.expErr, err.Error())
}
- test.Assert(t, "Deps", c.expDeps, testGitPkgCur.Deps, true)
- test.Assert(t, "DepsMissing", c.expDepsMissing,
- testGitPkgCur.DepsMissing, true)
- test.Assert(t, "env.pkgsMissing", c.expPkgsMissing,
- testEnv.pkgsMissing, true)
+ test.Assert(t, "Deps", c.expDeps, testGitPkgCur.Deps)
+ test.Assert(t, "DepsMissing", c.expDepsMissing, testGitPkgCur.DepsMissing)
+ test.Assert(t, "env.pkgsMissing", c.expPkgsMissing, testEnv.pkgsMissing)
}
}
diff --git a/package_test.go b/package_test.go
index 8b7a1b0..04c8d02 100644
--- a/package_test.go
+++ b/package_test.go
@@ -39,14 +39,14 @@ func TestPackageRemove(t *testing.T) {
err := c.pkg.Remove()
if err != nil {
- test.Assert(t, "err", c.expErr, err, true)
+ test.Assert(t, "err", c.expErr, err)
continue
}
expErr := fmt.Sprintf("stat %s: no such file or directory", c.pkg.FullPath)
_, err = os.Stat(c.pkg.FullPath)
- test.Assert(t, "src dir should not exist", expErr, err.Error(), true)
+ test.Assert(t, "src dir should not exist", expErr, err.Error())
pkg := filepath.Join(testEnv.dirPkg, c.pkg.ImportPath)
@@ -54,7 +54,7 @@ func TestPackageRemove(t *testing.T) {
_, err = os.Stat(pkg)
if err != nil {
- test.Assert(t, "pkg dir should not exist", expErr, err.Error(), true)
+ test.Assert(t, "pkg dir should not exist", expErr, err.Error())
}
}
}
@@ -92,7 +92,7 @@ func TestPackageInstall(t *testing.T) {
err := c.pkg.Install()
if err != nil {
- test.Assert(t, "err", c.expErr, err.Error(), true)
+ test.Assert(t, "err", c.expErr, err.Error())
continue
}
}
@@ -174,7 +174,7 @@ func TestIsEqual(t *testing.T) {
got = c.pkg.IsEqual(c.other)
- test.Assert(t, "", c.exp, got, true)
+ test.Assert(t, "", c.exp, got)
}
}
@@ -260,16 +260,15 @@ func TestAddDep(t *testing.T) {
testEnv.pkgsMissing = nil
got = testGitPkgCur.addDep(testEnv, c.importPath)
- test.Assert(t, "return", c.exp, got, true)
+ test.Assert(t, "return", c.exp, got)
if !got {
continue
}
- test.Assert(t, "Deps", c.expDeps, testGitPkgCur.Deps, true)
- test.Assert(t, "DepsMissing", c.expDepsMissing, testGitPkgCur.DepsMissing, true)
- test.Assert(t, "env.pkgsMissing", c.expPkgsMissing,
- testEnv.pkgsMissing, true)
+ test.Assert(t, "Deps", c.expDeps, testGitPkgCur.Deps)
+ test.Assert(t, "DepsMissing", c.expDepsMissing, testGitPkgCur.DepsMissing)
+ test.Assert(t, "env.pkgsMissing", c.expPkgsMissing, testEnv.pkgsMissing)
}
testGitPkgCur.Deps = nil
@@ -306,9 +305,8 @@ func TestPushRequiredBy(t *testing.T) {
got = testGitPkgCur.pushRequiredBy(c.importPath)
- test.Assert(t, "return value", c.exp, got, true)
- test.Assert(t, "RequiredBy", c.expRequiredBy,
- testGitPkgCur.RequiredBy, true)
+ test.Assert(t, "return value", c.exp, got)
+ test.Assert(t, "RequiredBy", c.expRequiredBy, testGitPkgCur.RequiredBy)
}
}
@@ -340,8 +338,8 @@ func TestPackageRemoveRequiredBy(t *testing.T) {
got := c.pkg.RemoveRequiredBy(c.importPath)
- test.Assert(t, "return value", c.exp, got, true)
- test.Assert(t, "RequiredBy", c.expRequiredBy, c.pkg.RequiredBy, true)
+ test.Assert(t, "return value", c.exp, got)
+ test.Assert(t, "RequiredBy", c.expRequiredBy, c.pkg.RequiredBy)
}
}
@@ -451,7 +449,7 @@ func TestPackageLoad(t *testing.T) {
pkg.load(sec)
- test.Assert(t, "", c.exp, pkg, true)
+ test.Assert(t, "", c.exp, pkg)
}
}
@@ -488,10 +486,10 @@ func TestGoInstall(t *testing.T) {
if err != nil {
errLines := strings.Split(stderr, "\n")
- test.Assert(t, "stderr", c.expStderr, errLines[0], true)
+ test.Assert(t, "stderr", c.expStderr, errLines[0])
} else {
outLines := strings.Split(stdout, "\n")
- test.Assert(t, "stdout", c.expStdout, outLines[0], true)
+ test.Assert(t, "stdout", c.expStdout, outLines[0])
}
if len(c.expBin) > 0 {
@@ -534,7 +532,7 @@ func TestPackageString(t *testing.T) {
for _, c := range cases {
got := c.pkg.String()
- test.Assert(t, "string", c.exp, got, true)
+ test.Assert(t, "string", c.exp, got)
}
}
@@ -640,7 +638,7 @@ func TestUpdate(t *testing.T) {
if err != nil {
t.Log("stderr:", stderr)
- test.Assert(t, "err", c.expErr, err.Error(), true)
+ test.Assert(t, "err", c.expErr, err.Error())
continue
}
@@ -648,7 +646,7 @@ func TestUpdate(t *testing.T) {
t.Log("stdout:", stdout)
}
- test.Assert(t, "current pkg", *c.expPkg, *c.curPkg, true)
+ test.Assert(t, "current pkg", *c.expPkg, *c.curPkg)
}
}
@@ -720,8 +718,8 @@ func TestUpdateMissingDep(t *testing.T) {
got := c.curPkg.UpdateMissingDep(c.misPkg, true)
- test.Assert(t, "return value", c.exp, got, true)
- test.Assert(t, "package", c.expCurPkg, c.curPkg, true)
+ test.Assert(t, "return value", c.exp, got)
+ test.Assert(t, "package", c.expCurPkg, c.curPkg)
}
}
@@ -753,7 +751,7 @@ func TestPackageGoClean(t *testing.T) {
err = c.pkg.GoClean()
if err != nil {
- test.Assert(t, "err", c.expErr, err, true)
+ test.Assert(t, "err", c.expErr, err)
continue
}
@@ -761,7 +759,7 @@ func TestPackageGoClean(t *testing.T) {
_, err = os.Stat(c.pkgBin)
if err != nil {
exp := fmt.Sprintf(c.expBinErr, c.pkgBin)
- test.Assert(t, "pkgBin", exp, err.Error(), true)
+ test.Assert(t, "pkgBin", exp, err.Error())
}
}
}