(t *testing.T)
| 74 | } |
| 75 | |
| 76 | func TestGroups(t *testing.T) { |
| 77 | bot := DefaultBot(Desktop) |
| 78 | if err := bot.Login(); err != nil { |
| 79 | t.Error(err) |
| 80 | return |
| 81 | } |
| 82 | user, err := bot.GetCurrentUser() |
| 83 | if err != nil { |
| 84 | t.Error(err) |
| 85 | return |
| 86 | } |
| 87 | groups, err := user.Groups() |
| 88 | if err != nil { |
| 89 | t.Error(err) |
| 90 | return |
| 91 | } |
| 92 | t.Log(groups) |
| 93 | } |
| 94 | |
| 95 | func TestPinUser(t *testing.T) { |
| 96 | bot := DefaultBot(Desktop) |
nothing calls this directly
no test coverage detected