-
Notifications
You must be signed in to change notification settings - Fork 15
/
friendships_test.go
58 lines (53 loc) · 1.24 KB
/
friendships_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
* Author: Tony.Shao([email protected])
* Date: 13-03-15
* Version: 0.02
*/
package weigo
import (
// "fmt"
"testing"
)
func Test_GET_friendships_friends(t *testing.T) {
t.SkipNow()
kws := map[string]interface{}{
"uid": "2684726573",
}
result := new(Friendships)
err := api.GET_friendships_friends(kws, result)
debugCheckError(err)
debugPrintln(len(*result.Users))
}
func Test_GET_friendships_friends_in_common(t *testing.T) {
t.SkipNow()
kws := map[string]interface{}{
"uid": "1580095602",
"suid": "2684726573",
}
result := new(Friendships)
err := api.GET_friendships_friends_in_common(kws, result)
debugCheckError(err)
debugPrintln(len(*result.Users))
}
func Test_GET_friendships_friends_ids(t *testing.T) {
t.SkipNow()
kws := map[string]interface{}{
"uid": "1580095602",
}
result := new(FriendsIDS)
err := api.GET_friendships_friends_ids(kws, result)
debugCheckError(err)
debugPrintln(len(*result.Ids))
// fmt.Println(*result.Ids)
}
func Test_GET_friendships_followers_active(t *testing.T) {
t.SkipNow()
kws := map[string]interface{}{
"uid": "1580095602",
}
result := new([]User)
err := api.GET_friendships_followers_active(kws, result)
debugCheckError(err)
debugPrintln(len(*result))
// fmt.Println(*result.Ids)
}