-
Notifications
You must be signed in to change notification settings - Fork 56
/
constant_data_test.go
89 lines (78 loc) · 2.4 KB
/
constant_data_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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package gads
import (
//"fmt"
"testing"
)
func testConstantDataService(t *testing.T) (service *ConstantDataService) {
return &ConstantDataService{Auth: testAuthSetup(t)}
}
func TestConstantData(t *testing.T) {
/*
cds := testConstantDataService(t)
ageRangeCriterions, err := cds.GetAgeRangeCriterion()
if err != nil {
t.Error(err)
}
fmt.Printf("Age Range\n")
for _, ageRange := range ageRangeCriterions {
//fmt.Printf("%d. %s\n",ageRange.Id,ageRange.AgeRangeType)
fmt.Printf("%d. %#v\n",ageRange.Id,ageRange)
}
carrierCriterions, err := cds.GetCarrierCriterion()
if err != nil {
t.Error(err)
}
fmt.Printf("\nCarrier\n")
for _, carrier := range carrierCriterions {
fmt.Printf("%d. %s,%s\n",carrier.Id, carrier.Name,carrier.CountryCode)
}
genderCriterions, err := cds.GetGenderCriterion()
if err != nil {
t.Error(err)
}
fmt.Printf("\nGender\n")
for _, gender := range genderCriterions {
fmt.Printf("%d. %s\n",gender.Id, gender.GenderType)
}
languageCriterions, err := cds.GetLanguageCriterion()
if err != nil {
t.Error(err)
}
fmt.Printf("\nLanguage\n")
for _, language := range languageCriterions {
fmt.Printf("%d. %s,%s\n", language.Id, language.Code, language.Name)
}
mobileDeviceCriterions, err := cds.GetMobileDeviceCriterion()
if err != nil {
t.Error(err)
}
fmt.Printf("\nMobile Device\n")
for _, mobile := range mobileDeviceCriterions {
fmt.Printf("%d. %s,%s\n", mobile.Id, mobile.DeviceName, mobile.DeviceType)
}
operatingSystemVersionCriterions, err := cds.GetOperatingSystemVersionCriterion()
if err != nil {
t.Error(err)
}
fmt.Printf("\nOperating System Version\n")
for _, osv := range operatingSystemVersionCriterions {
fmt.Printf("%d. %s,%s\n", osv.Id, osv.Name, osv.OperatorType)
}
userInterestCriterions, err := cds.GetUserInterestCriterion()
if err != nil {
t.Error(err)
}
fmt.Printf("\nUser Interest\n")
for _, userInterest := range userInterestCriterions {
fmt.Printf("%d. %s\n", userInterest.Id, userInterest.Name)
}
verticalCriterions, err := cds.GetVerticalCriterion()
if err != nil {
t.Error(err)
}
fmt.Printf("\nVertical\n")
for _, vertical := range verticalCriterions {
fmt.Printf("%d. %#v\n",vertical.Id, vertical.Path)
}
*/
}