Some checks failed
Build / build (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
build / Build (push) Has been cancelled
GitHub Actions Mirror / mirror_to_gitee (push) Has been cancelled
GitHub Actions Mirror / mirror_to_gitlab (push) Has been cancelled
Issue Close Require / issue-close-require (push) Has been cancelled
Issue Check Inactive / issue-check-inactive (push) Has been cancelled
24 lines
474 B
Go
24 lines
474 B
Go
package file_store
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestKODOUpload(t *testing.T) {
|
|
e := OXS{"", "", "", ""}
|
|
var oxs = e.Setup(QiNiuKodo, map[string]interface{}{"Zone": "华东"})
|
|
err := oxs.UpLoad("test.png", "./test.png")
|
|
if err != nil {
|
|
t.Error(err)
|
|
}
|
|
t.Log("ok")
|
|
}
|
|
|
|
func TestKODOGetTempToken(t *testing.T) {
|
|
e := OXS{"", "", "", ""}
|
|
var oxs = e.Setup(QiNiuKodo, map[string]interface{}{"Zone": "华东"})
|
|
token, _ := oxs.GetTempToken()
|
|
t.Log(token)
|
|
t.Log("ok")
|
|
}
|