diff options
| author | Shulhan <ms@kilabit.info> | 2018-05-21 00:16:26 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-05-21 00:16:26 +0700 |
| commit | 25534a7c276aebc76032fa66419dd3c311047c27 (patch) | |
| tree | a9ac0518d6af456801b851ff196bf43a68132418 /beku_test.go | |
| parent | 0947ee08631bd083f25a7b428fadcb087dc84f3a (diff) | |
| download | beku-25534a7c276aebc76032fa66419dd3c311047c27.tar.xz | |
[test] package: add unit test for Remove, Install, and GoClean
Diffstat (limited to 'beku_test.go')
| -rw-r--r-- | beku_test.go | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/beku_test.go b/beku_test.go index 06fa37e..cfa0932 100644 --- a/beku_test.go +++ b/beku_test.go @@ -10,15 +10,18 @@ import ( ) const ( - testGitRepo = "github.com/shuLhan/beku_test" + testGitRepo = "github.com/shuLhan/beku_test" + testGitRepoShare = "github.com/shuLhan/share" + testPkgNotExist = "github.com/shuLhan/notexist" ) var ( - testEnv *Env - gitCurPkg *Package - gitNewPkg *Package - testStdout *os.File - testStderr *os.File + testEnv *Env + gitCurPkg *Package + gitNewPkg *Package + gitPkgShare *Package + testStdout *os.File + testStderr *os.File ) func testInitOutput() (err error) { @@ -98,6 +101,7 @@ func TestMain(t *testing.M) { gitCurPkg = NewPackage(testGitRepo, testGitRepo, VCSModeGit) gitNewPkg = NewPackage(testGitRepo, testGitRepo, VCSModeGit) + gitPkgShare = NewPackage(testGitRepoShare, testGitRepoShare, VCSModeGit) log.Printf("test env : %+v\n", *testEnv) log.Printf("gitCurPkg: %+v\n", *gitCurPkg) |
