aboutsummaryrefslogtreecommitdiff
path: root/package_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-05-21 03:38:34 +0700
committerShulhan <ms@kilabit.info>2018-05-21 03:38:34 +0700
commit8f01bf679c2bec9b514f4ea2d0f3d5c4eca9e953 (patch)
treea821f2bfae8afcf6d0d500849473a13288257ea7 /package_test.go
parent10ab9cedefd713ad49a62c0b03d73963da21c904 (diff)
downloadbeku-8f01bf679c2bec9b514f4ea2d0f3d5c4eca9e953.tar.xz
Set environment as dirty after sync operation than add or update a package
Diffstat (limited to 'package_test.go')
-rw-r--r--package_test.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/package_test.go b/package_test.go
index c82dcc5..993e5a9 100644
--- a/package_test.go
+++ b/package_test.go
@@ -633,6 +633,7 @@ func testUpdateMissingDep(t *testing.T) {
desc string
curPkg *Package
misPkg *Package
+ exp bool
expCurPkg *Package
expMisPkg *Package
}{{
@@ -670,6 +671,7 @@ func testUpdateMissingDep(t *testing.T) {
misPkg: &Package{
ImportPath: "c",
},
+ exp: true,
expCurPkg: &Package{
ImportPath: "curpkg",
DepsMissing: []string{
@@ -691,9 +693,10 @@ func testUpdateMissingDep(t *testing.T) {
for _, c := range cases {
t.Log(c.desc)
- c.curPkg.UpdateMissingDep(c.misPkg)
+ got := c.curPkg.UpdateMissingDep(c.misPkg)
- test.Assert(t, "", c.expCurPkg, c.curPkg, true)
+ test.Assert(t, "return value", c.exp, got, true)
+ test.Assert(t, "package", c.expCurPkg, c.curPkg, true)
}
}