mirror of
https://github.com/fumiama/tienyik.git
synced 2026-06-11 18:50:23 +08:00
feat: add more apis
This commit is contained in:
14
api/cdserv/client_test.go
Normal file
14
api/cdserv/client_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package cdserv
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestGetServData(t *testing.T) {
|
||||
r, err := GetServData()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(r)
|
||||
if len(r.GlobalSwitches.BodyMsgEType) == 0 {
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user