test✅: added oss test

This commit is contained in:
zhangwenjian committed 2022-02-21 18:04:46 +08:00
1 parent 8754ff8147
commit dfaa2ff51e
1 file changed
+16
+16
View File
@@ -0,0 +1,16 @@
package file_store
import (
"testing"
)
func TestOSSUpload(t *testing.T) {
// 打括号内填写自己的测试信息即可
e := OXS{}
var oxs = e.Setup(AliYunOSS)
err := oxs.UpLoad("test.png", "./test.png")
if err != nil {
t.Error(err)
}
t.Log("ok")
}