MCPcopy Index your code
hub / github.com/dearcode/candy / TestLoadFriendList

Function TestLoadFriendList

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

Source from the content-addressed store, hash-verified

341}
342
343func TestLoadFriendList(t *testing.T) {
344 data, err := client.LoadFriendList()
345 if err != nil {
346 t.Fatalf("LoadFriendList error:%v", err)
347 }
348
349 friendList, err := DecodeFriendList([]byte(data))
350 if err != nil {
351 t.Fatalf("Decode FriendList error:%v", err)
352 }
353
354 for index, user := range friendList.Users {
355 t.Logf("friend%v userID:%v\n", index, user)
356 }
357
358 t.Logf("LoadFriendList success")
359}

Callers

nothing calls this directly

Calls 2

DecodeFriendListFunction · 0.85
LoadFriendListMethod · 0.65

Tested by

no test coverage detected