|
|
|
@ -18,7 +18,6 @@ package helpers |
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
|
"io/ioutil" |
|
|
|
|
"log" |
|
|
|
|
"strings" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -27,13 +26,6 @@ func MakeTempTestDir() (string, error) { |
|
|
|
|
return ioutil.TempDir("/tmp", "minio-test-") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Assert wrapper for error not being null
|
|
|
|
|
func Assert(err error) { |
|
|
|
|
if err != nil { |
|
|
|
|
log.Fatal(err) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Camelcase input string
|
|
|
|
|
func FirstUpper(str string) string { |
|
|
|
|
return strings.ToUpper(str[0:1]) + str[1:] |
|
|
|
|