obs_test.go 229 B

123456789101112131415
  1. package file_store
  2. import (
  3. "testing"
  4. )
  5. func TestOBSUpload(t *testing.T) {
  6. e := OXS{"", "", "", ""}
  7. var oxs = e.Setup(HuaweiOBS)
  8. err := oxs.UpLoad("test.png", "./test.png")
  9. if err != nil {
  10. t.Error(err)
  11. }
  12. t.Log("ok")
  13. }