@@ -61,7 +61,7 @@ func TestPlatformSearch(t *testing.T) {
61
61
Website : "https://www.retrokits.com" ,
62
62
63
63
Boards : []* rpc.Board {{Name : "RK002" }},
64
- Category : "Contributed" ,
64
+ Type : [] string { "Contributed" } ,
65
65
})
66
66
require .Contains (t , res .SearchOutput , & rpc.Platform {
67
67
Id : "Retrokits-RK002:arm" ,
@@ -72,7 +72,7 @@ func TestPlatformSearch(t *testing.T) {
72
72
Website : "https://www.retrokits.com" ,
73
73
74
74
Boards : []* rpc.Board {{Name : "RK002" }},
75
- Category : "Contributed" ,
75
+ Type : [] string { "Contributed" } ,
76
76
})
77
77
78
78
res , stat = PlatformSearch (& rpc.PlatformSearchRequest {
@@ -92,7 +92,7 @@ func TestPlatformSearch(t *testing.T) {
92
92
Website : "https://www.retrokits.com" ,
93
93
94
94
Boards : []* rpc.Board {{Name : "RK002" }},
95
- Category : "Contributed" ,
95
+ Type : [] string { "Contributed" } ,
96
96
})
97
97
98
98
// Search the Package Maintainer
@@ -113,7 +113,7 @@ func TestPlatformSearch(t *testing.T) {
113
113
Website : "https://www.retrokits.com" ,
114
114
115
115
Boards : []* rpc.Board {{Name : "RK002" }},
116
- Category : "Contributed" ,
116
+ Type : [] string { "Contributed" } ,
117
117
})
118
118
require .Contains (t , res .SearchOutput , & rpc.Platform {
119
119
Id : "Retrokits-RK002:arm" ,
@@ -124,7 +124,7 @@ func TestPlatformSearch(t *testing.T) {
124
124
Website : "https://www.retrokits.com" ,
125
125
126
126
Boards : []* rpc.Board {{Name : "RK002" }},
127
- Category : "Contributed" ,
127
+ Type : [] string { "Contributed" } ,
128
128
})
129
129
130
130
// Search using the Package name
@@ -145,7 +145,7 @@ func TestPlatformSearch(t *testing.T) {
145
145
Website : "https://www.retrokits.com" ,
146
146
147
147
Boards : []* rpc.Board {{Name : "RK002" }},
148
- Category : "Contributed" ,
148
+ Type : [] string { "Contributed" } ,
149
149
})
150
150
require .Contains (t , res .SearchOutput , & rpc.Platform {
151
151
Id : "Retrokits-RK002:arm" ,
@@ -156,7 +156,7 @@ func TestPlatformSearch(t *testing.T) {
156
156
Website : "https://www.retrokits.com" ,
157
157
158
158
Boards : []* rpc.Board {{Name : "RK002" }},
159
- Category : "Contributed" ,
159
+ Type : [] string { "Contributed" } ,
160
160
})
161
161
162
162
// Search using the Platform name
@@ -177,7 +177,7 @@ func TestPlatformSearch(t *testing.T) {
177
177
Website : "https://www.retrokits.com" ,
178
178
179
179
Boards : []* rpc.Board {{Name : "RK002" }},
180
- Category : "Contributed" ,
180
+ Type : [] string { "Contributed" } ,
181
181
})
182
182
require .Contains (t , res .SearchOutput , & rpc.Platform {
183
183
Id : "Retrokits-RK002:arm" ,
@@ -188,7 +188,7 @@ func TestPlatformSearch(t *testing.T) {
188
188
Website : "https://www.retrokits.com" ,
189
189
190
190
Boards : []* rpc.Board {{Name : "RK002" }},
191
- Category : "Contributed" ,
191
+ Type : [] string { "Contributed" } ,
192
192
})
193
193
194
194
// Search using a board name
@@ -208,7 +208,7 @@ func TestPlatformSearch(t *testing.T) {
208
208
Maintainer : "Arduino" ,
209
209
Website : "https://www.arduino.cc/" ,
210
210
211
- Category : "Arduino" ,
211
+ Type : [] string { "Arduino" } ,
212
212
Boards : []* rpc.Board {
213
213
{Name : "Arduino Yún" },
214
214
{Name : "Arduino Uno" },
@@ -255,7 +255,7 @@ func TestPlatformSearch(t *testing.T) {
255
255
Maintainer : "Arduino" ,
256
256
Website : "https://www.arduino.cc/" ,
257
257
258
- Category : "Arduino" ,
258
+ Type : [] string { "Arduino" } ,
259
259
Boards : []* rpc.Board {
260
260
{Name : "Arduino Yún" },
261
261
{Name : "Arduino Uno" },
0 commit comments