MCPcopy Create free account
hub / github.com/dearcode/candy / TestLoadGroupList

Function TestLoadGroupList

client/candy_test.go:325–341  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

323}
324
325func TestLoadGroupList(t *testing.T) {
326 data, err := client.LoadGroupList()
327 if err != nil {
328 t.Fatalf("LoadGroupList error:%v", err)
329 }
330
331 groupList, err := DecodeGroupList([]byte(data))
332 if err != nil {
333 t.Fatalf("LoadGroupList error:%v", err)
334 }
335
336 for index, group := range groupList.Groups {
337 t.Logf("group:%v {ID:%v, Name:%v, Users:%v}\n", index, group.ID, group.Name, group.Users)
338 }
339
340 t.Logf("LoadGroupList success")
341}
342
343func TestLoadFriendList(t *testing.T) {
344 data, err := client.LoadFriendList()

Callers

nothing calls this directly

Calls 2

DecodeGroupListFunction · 0.85
LoadGroupListMethod · 0.65

Tested by

no test coverage detected