49 lines
838 B
Go
49 lines
838 B
Go
package jdeclpapi
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.rosy.net.cn/baseapi"
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
var (
|
|
api *API
|
|
sugarLogger *zap.SugaredLogger
|
|
)
|
|
|
|
func init() {
|
|
logger, _ := zap.NewDevelopment()
|
|
sugarLogger = logger.Sugar()
|
|
baseapi.Init(sugarLogger)
|
|
api = New("", "", "", "")
|
|
}
|
|
|
|
func TestQuerySpSource(t *testing.T) {
|
|
api.QuerySpSource()
|
|
}
|
|
|
|
func TestAddOrder(t *testing.T) {
|
|
api.AddOrder(&AddOrderParam{})
|
|
}
|
|
func TestCancelOrder(t *testing.T) {
|
|
api.CancelOrder("")
|
|
}
|
|
func TestQueryOrderStatus(t *testing.T) {
|
|
api.QueryOrderStatus("")
|
|
}
|
|
func TestGetTrackMessagePlusByOrder(t *testing.T) {
|
|
api.GetTrackMessagePlusByOrder("")
|
|
}
|
|
func TestSearchShopStock(t *testing.T) {
|
|
api.SearchShopStock(&SearchShopStockParam{})
|
|
}
|
|
|
|
func TestGetTokenInfo(t *testing.T) {
|
|
api.GetTokenInfo()
|
|
}
|
|
|
|
func TestGetToken(t *testing.T) {
|
|
api.GetToken()
|
|
}
|