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

Function TestGroups

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

Source from the content-addressed store, hash-verified

74}
75
76func 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
95func TestPinUser(t *testing.T) {
96 bot := DefaultBot(Desktop)

Callers

nothing calls this directly

Calls 5

DefaultBotFunction · 0.85
ErrorMethod · 0.80
GetCurrentUserMethod · 0.80
LoginMethod · 0.65
GroupsMethod · 0.45

Tested by

no test coverage detected