(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func 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 | |
| 19 | func TestLogout(t *testing.T) { |
| 20 | bot := DefaultBot(Desktop) |
nothing calls this directly
no test coverage detected