MCPcopy
hub / github.com/eatmoreapple/openwechat / TestLogin

Function TestLogin

bot_test.go:9–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestLogin(t *testing.T) {
10 bot := DefaultBot(Desktop)
11 bot.LoginCallBack = func(body CheckLoginResponse) {
12 t.Log("login")
13 }
14 if err := bot.Login(); err != nil {
15 t.Error(err)
16 }
17}
18
19func TestLogout(t *testing.T) {
20 bot := DefaultBot(Desktop)

Callers

nothing calls this directly

Calls 3

DefaultBotFunction · 0.85
ErrorMethod · 0.80
LoginMethod · 0.65

Tested by

no test coverage detected