aa
This commit is contained in:
25
platformapi/ejyapi/ejyapi_test.go
Normal file
25
platformapi/ejyapi/ejyapi_test.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package ejyapi
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"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("1Zbve", time.Now().Unix(), "ymsrrxlZXlmglK6Q", "MYsFZGgwwprIahzQ")
|
||||
}
|
||||
|
||||
func TestGetStationList(t *testing.T) {
|
||||
api.GetStationList()
|
||||
}
|
||||
Reference in New Issue
Block a user