Add minio-cli stub generator

This commit is contained in:
Harshavardhana
2014-12-18 02:18:02 -08:00
parent 2b3be86727
commit 5268a62166
9 changed files with 387 additions and 1 deletions

View File

@@ -16,8 +16,22 @@
package utils
import "io/ioutil"
import (
"io/ioutil"
"log"
"strings"
)
func MakeTempTestDir() (string, error) {
return ioutil.TempDir("/tmp", "minio-test-")
}
func Assert(err error) {
if err != nil {
log.Fatal(err)
}
}
func FirstUpper(str string) string {
return strings.ToUpper(str[0:1]) + str[1:]
}