@@ -61,6 +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
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
73
74
Boards : []* rpc.Board {{Name : "RK002" }},
75
+ Category : "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
92
94
Boards : []* rpc.Board {{Name : "RK002" }},
95
+ Category : "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
112
115
Boards : []* rpc.Board {{Name : "RK002" }},
116
+ Category : "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
122
126
Boards : []* rpc.Board {{Name : "RK002" }},
127
+ Category : "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
142
147
Boards : []* rpc.Board {{Name : "RK002" }},
148
+ Category : "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
152
158
Boards : []* rpc.Board {{Name : "RK002" }},
159
+ Category : "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
172
179
Boards : []* rpc.Board {{Name : "RK002" }},
180
+ Category : "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
182
190
Boards : []* rpc.Board {{Name : "RK002" }},
191
+ Category : "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
211
+ Category : "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
258
+ Category : "Arduino" ,
248
259
Boards : []* rpc.Board {
249
260
{Name : "Arduino Yún" },
250
261
{Name : "Arduino Uno" },
0 commit comments