-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeta_test.go
54 lines (45 loc) · 882 Bytes
/
meta_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
package appannie
import (
"testing"
)
func TestCountryMeta(t *testing.T) {
countries, regions, err := testClient.CountryMeta()
if err != nil {
t.Error(err)
return
}
t.Log("Countries:")
for _, info := range countries {
t.Log(" ", info)
}
t.Log("Regions")
for _, info := range regions {
t.Log(" ", info)
}
}
func TestCategoryMeta(t *testing.T) {
categories, appAnnieCategories, err := testClient.CategoryMeta("apps", "google-play")
if err != nil {
t.Error(err)
return
}
t.Log("Categories:")
for _, info := range categories {
t.Log(" ", info)
}
t.Log("AppAnnie Categories:")
for _, info := range appAnnieCategories {
t.Log(" ", info)
}
}
func TestCurrencyMeta(t *testing.T) {
metas, err := testClient.CurrencyMeta()
if err != nil {
t.Error(err)
return
}
t.Log("Categories:")
for _, m := range metas {
t.Log(" ", m)
}
}