Add missing tests for bucket util (#565)

* Add CheckDeepEqual test util

* Fix for srcContext with slash suffix

* Add tests for bucket_util.go
This commit is contained in:
Shuhei Kitagawa
2019-02-19 09:05:23 -06:00
committed by dlorenc
parent 4feed0ff35
commit e8564f0d28
3 changed files with 76 additions and 1 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ import (
func GetBucketAndItem(context string) (string, string) {
split := strings.SplitN(context, "/", 2)
if len(split) == 2 {
if len(split) == 2 && split[1] != "" {
return split[0], split[1]
}
return split[0], constants.ContextTar