32 lines
790 B
Go
32 lines
790 B
Go
package ebaiapi
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.rosy.net.cn/baseapi"
|
|
"git.rosy.net.cn/baseapi/utils"
|
|
)
|
|
|
|
func TestOrderRatesGet(t *testing.T) {
|
|
commentList, err := api.OrderRatesGet("102002", 0, utils.Str2Time("2019-09-25"), utils.Str2Time("2019-10-10"), ReplyStatusAll)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
baseapi.SugarLogger.Debug(utils.Format4Output(commentList, false))
|
|
}
|
|
|
|
func TestOrderCommetGet(t *testing.T) {
|
|
commentList, err := api.OrderCommetGet("102002", 0, utils.Str2Time("2019-09-29"), utils.Str2Time("2019-09-30"), ReplyStatusAll)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
baseapi.SugarLogger.Debug(utils.Format4Output(commentList, false))
|
|
}
|
|
|
|
func TestOrderRatesReply(t *testing.T) {
|
|
err := api.OrderRatesReply("100119", 0, "commentID", "hello")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|