@@ -61,6 +61,7 @@ func TestPlatformSearch(t *testing.T) {
61
61
Website : "https://www.retrokits.com" ,
62
62
Email : "info@retrokits.com" ,
63
63
Boards : []* rpc.Board {{Name : "RK002" }},
64
+ Type : []string {"Contributed" },
64
65
})
65
66
require .Contains (t , res .SearchOutput , & rpc.Platform {
66
67
Id : "Retrokits-RK002:arm" ,
@@ -71,6 +72,7 @@ func TestPlatformSearch(t *testing.T) {
71
72
Website : "https://www.retrokits.com" ,
72
73
Email : "info@retrokits.com" ,
73
74
Boards : []* rpc.Board {{Name : "RK002" }},
75
+ Type : []string {"Contributed" },
74
76
})
75
77
76
78
res , stat = PlatformSearch (& rpc.PlatformSearchRequest {
@@ -90,6 +92,7 @@ func TestPlatformSearch(t *testing.T) {
90
92
Website : "https://www.retrokits.com" ,
91
93
Email : "info@retrokits.com" ,
92
94
Boards : []* rpc.Board {{Name : "RK002" }},
95
+ Type : []string {"Contributed" },
93
96
})
94
97
95
98
// Search the Package Maintainer
@@ -110,6 +113,7 @@ func TestPlatformSearch(t *testing.T) {
110
113
Website : "https://www.retrokits.com" ,
111
114
Email : "info@retrokits.com" ,
112
115
Boards : []* rpc.Board {{Name : "RK002" }},
116
+ Type : []string {"Contributed" },
113
117
})
114
118
require .Contains (t , res .SearchOutput , & rpc.Platform {
115
119
Id : "Retrokits-RK002:arm" ,
@@ -120,6 +124,7 @@ func TestPlatformSearch(t *testing.T) {
120
124
Website : "https://www.retrokits.com" ,
121
125
Email : "info@retrokits.com" ,
122
126
Boards : []* rpc.Board {{Name : "RK002" }},
127
+ Type : []string {"Contributed" },
123
128
})
124
129
125
130
// Search using the Package name
@@ -140,6 +145,7 @@ func TestPlatformSearch(t *testing.T) {
140
145
Website : "https://www.retrokits.com" ,
141
146
Email : "info@retrokits.com" ,
142
147
Boards : []* rpc.Board {{Name : "RK002" }},
148
+ Type : []string {"Contributed" },
143
149
})
144
150
require .Contains (t , res .SearchOutput , & rpc.Platform {
145
151
Id : "Retrokits-RK002:arm" ,
@@ -150,6 +156,7 @@ func TestPlatformSearch(t *testing.T) {
150
156
Website : "https://www.retrokits.com" ,
151
157
Email : "info@retrokits.com" ,
152
158
Boards : []* rpc.Board {{Name : "RK002" }},
159
+ Type : []string {"Contributed" },
153
160
})
154
161
155
162
// Search using the Platform name
@@ -170,6 +177,7 @@ func TestPlatformSearch(t *testing.T) {
170
177
Website : "https://www.retrokits.com" ,
171
178
Email : "info@retrokits.com" ,
172
179
Boards : []* rpc.Board {{Name : "RK002" }},
180
+ Type : []string {"Contributed" },
173
181
})
174
182
require .Contains (t , res .SearchOutput , & rpc.Platform {
175
183
Id : "Retrokits-RK002:arm" ,
@@ -180,6 +188,7 @@ func TestPlatformSearch(t *testing.T) {
180
188
Website : "https://www.retrokits.com" ,
181
189
Email : "info@retrokits.com" ,
182
190
Boards : []* rpc.Board {{Name : "RK002" }},
191
+ Type : []string {"Contributed" },
183
192
})
184
193
185
194
// Search using a board name
@@ -199,6 +208,7 @@ func TestPlatformSearch(t *testing.T) {
199
208
Maintainer : "Arduino" ,
200
209
Website : "https://www.arduino.cc/" ,
201
210
Email : "packages@arduino.cc" ,
211
+ Type : []string {"Arduino" },
202
212
Boards : []* rpc.Board {
203
213
{Name : "Arduino Yún" },
204
214
{Name : "Arduino Uno" },
@@ -245,6 +255,7 @@ func TestPlatformSearch(t *testing.T) {
245
255
Maintainer : "Arduino" ,
246
256
Website : "https://www.arduino.cc/" ,
247
257
Email : "packages@arduino.cc" ,
258
+ Type : []string {"Arduino" },
248
259
Boards : []* rpc.Board {
249
260
{Name : "Arduino Yún" },
250
261
{Name : "Arduino Uno" },
0 commit comments