Add ci test with the testify and travis, test the working

fix travis yml and test

fix travis yml and test

Fix yml and import package

fix

fix ci_test

go on test

ci

Remote other infos
This commit is contained in:
toranger
2019-01-31 10:27:19 +08:00
parent 44c9c3fb79
commit 4cc9e08da1
12 changed files with 570 additions and 23 deletions

View File

@@ -28,6 +28,7 @@ func main() {
},
})
// Case1 normal put object
name := "test/objectPut.go"
f := strings.NewReader("test")
@@ -36,6 +37,7 @@ func main() {
panic(err)
}
// Case2 put object with the options
name = "test/put_option.go"
f = strings.NewReader("test xxx")
opt := &cos.ObjectPutOptions{
@@ -51,4 +53,11 @@ func main() {
if err != nil {
panic(err)
}
// Case3 put object by local file
_, err = c.Object.PutFromFile(context.Background(), name, "./test10M", nil)
if err != nil {
panic(err)
}
}