(t *testing.T)
| 341 | } |
| 342 | |
| 343 | func 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 | } |
nothing calls this directly
no test coverage detected