@@ -53,28 +53,32 @@ func TestPlatformSearch(t *testing.T) {
53
53
54
54
require .Len (t , res .SearchOutput , 2 )
55
55
require .Contains (t , res .SearchOutput , & rpc.Platform {
56
- Id : "Retrokits-RK002:arm" ,
57
- Installed : "" ,
58
- Latest : "1.0.5" ,
59
- Name : "RK002" ,
60
- Maintainer : "Retrokits (www.retrokits.com)" ,
61
- Website : "https://www.retrokits.com" ,
62
-
63
- Boards : []* rpc.Board {{Name : "RK002" }},
64
- Type : []string {"Contributed" },
65
- Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
56
+ Id : "Retrokits-RK002:arm" ,
57
+ Installed : "" ,
58
+ Latest : "1.0.5" ,
59
+ Name : "RK002" ,
60
+ Maintainer : "Retrokits (www.retrokits.com)" ,
61
+ Website : "https://www.retrokits.com" ,
62
+
63
+ Boards : []* rpc.Board {{Name : "RK002" }},
64
+ Type : []string {"Contributed" },
65
+ Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
66
+ Indexed : true ,
67
+ MissingMetadata : true ,
66
68
})
67
69
require .Contains (t , res .SearchOutput , & rpc.Platform {
68
- Id : "Retrokits-RK002:arm" ,
69
- Installed : "" ,
70
- Latest : "1.0.6" ,
71
- Name : "RK002" ,
72
- Maintainer : "Retrokits (www.retrokits.com)" ,
73
- Website : "https://www.retrokits.com" ,
74
-
75
- Boards : []* rpc.Board {{Name : "RK002" }},
76
- Type : []string {"Contributed" },
77
- Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
70
+ Id : "Retrokits-RK002:arm" ,
71
+ Installed : "" ,
72
+ Latest : "1.0.6" ,
73
+ Name : "RK002" ,
74
+ Maintainer : "Retrokits (www.retrokits.com)" ,
75
+ Website : "https://www.retrokits.com" ,
76
+
77
+ Boards : []* rpc.Board {{Name : "RK002" }},
78
+ Type : []string {"Contributed" },
79
+ Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
80
+ Indexed : true ,
81
+ MissingMetadata : true ,
78
82
})
79
83
80
84
res , stat = PlatformSearch (& rpc.PlatformSearchRequest {
@@ -86,16 +90,18 @@ func TestPlatformSearch(t *testing.T) {
86
90
require .NotNil (t , res )
87
91
require .Len (t , res .SearchOutput , 1 )
88
92
require .Contains (t , res .SearchOutput , & rpc.Platform {
89
- Id : "Retrokits-RK002:arm" ,
90
- Installed : "" ,
91
- Latest : "1.0.6" ,
92
- Name : "RK002" ,
93
- Maintainer : "Retrokits (www.retrokits.com)" ,
94
- Website : "https://www.retrokits.com" ,
95
-
96
- Boards : []* rpc.Board {{Name : "RK002" }},
97
- Type : []string {"Contributed" },
98
- Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
93
+ Id : "Retrokits-RK002:arm" ,
94
+ Installed : "" ,
95
+ Latest : "1.0.6" ,
96
+ Name : "RK002" ,
97
+ Maintainer : "Retrokits (www.retrokits.com)" ,
98
+ Website : "https://www.retrokits.com" ,
99
+
100
+ Boards : []* rpc.Board {{Name : "RK002" }},
101
+ Type : []string {"Contributed" },
102
+ Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
103
+ Indexed : true ,
104
+ MissingMetadata : true ,
99
105
})
100
106
101
107
// Search the Package Maintainer
@@ -108,28 +114,32 @@ func TestPlatformSearch(t *testing.T) {
108
114
require .NotNil (t , res )
109
115
require .Len (t , res .SearchOutput , 2 )
110
116
require .Contains (t , res .SearchOutput , & rpc.Platform {
111
- Id : "Retrokits-RK002:arm" ,
112
- Installed : "" ,
113
- Latest : "1.0.5" ,
114
- Name : "RK002" ,
115
- Maintainer : "Retrokits (www.retrokits.com)" ,
116
- Website : "https://www.retrokits.com" ,
117
-
118
- Boards : []* rpc.Board {{Name : "RK002" }},
119
- Type : []string {"Contributed" },
120
- Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
117
+ Id : "Retrokits-RK002:arm" ,
118
+ Installed : "" ,
119
+ Latest : "1.0.5" ,
120
+ Name : "RK002" ,
121
+ Maintainer : "Retrokits (www.retrokits.com)" ,
122
+ Website : "https://www.retrokits.com" ,
123
+
124
+ Boards : []* rpc.Board {{Name : "RK002" }},
125
+ Type : []string {"Contributed" },
126
+ Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
127
+ Indexed : true ,
128
+ MissingMetadata : true ,
121
129
})
122
130
require .Contains (t , res .SearchOutput , & rpc.Platform {
123
- Id : "Retrokits-RK002:arm" ,
124
- Installed : "" ,
125
- Latest : "1.0.6" ,
126
- Name : "RK002" ,
127
- Maintainer : "Retrokits (www.retrokits.com)" ,
128
- Website : "https://www.retrokits.com" ,
129
-
130
- Boards : []* rpc.Board {{Name : "RK002" }},
131
- Type : []string {"Contributed" },
132
- Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
131
+ Id : "Retrokits-RK002:arm" ,
132
+ Installed : "" ,
133
+ Latest : "1.0.6" ,
134
+ Name : "RK002" ,
135
+ Maintainer : "Retrokits (www.retrokits.com)" ,
136
+ Website : "https://www.retrokits.com" ,
137
+
138
+ Boards : []* rpc.Board {{Name : "RK002" }},
139
+ Type : []string {"Contributed" },
140
+ Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
141
+ Indexed : true ,
142
+ MissingMetadata : true ,
133
143
})
134
144
135
145
// Search using the Package name
@@ -142,28 +152,32 @@ func TestPlatformSearch(t *testing.T) {
142
152
require .NotNil (t , res )
143
153
require .Len (t , res .SearchOutput , 2 )
144
154
require .Contains (t , res .SearchOutput , & rpc.Platform {
145
- Id : "Retrokits-RK002:arm" ,
146
- Installed : "" ,
147
- Latest : "1.0.5" ,
148
- Name : "RK002" ,
149
- Maintainer : "Retrokits (www.retrokits.com)" ,
150
- Website : "https://www.retrokits.com" ,
151
-
152
- Boards : []* rpc.Board {{Name : "RK002" }},
153
- Type : []string {"Contributed" },
154
- Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
155
+ Id : "Retrokits-RK002:arm" ,
156
+ Installed : "" ,
157
+ Latest : "1.0.5" ,
158
+ Name : "RK002" ,
159
+ Maintainer : "Retrokits (www.retrokits.com)" ,
160
+ Website : "https://www.retrokits.com" ,
161
+
162
+ Boards : []* rpc.Board {{Name : "RK002" }},
163
+ Type : []string {"Contributed" },
164
+ Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
165
+ Indexed : true ,
166
+ MissingMetadata : true ,
155
167
})
156
168
require .Contains (t , res .SearchOutput , & rpc.Platform {
157
- Id : "Retrokits-RK002:arm" ,
158
- Installed : "" ,
159
- Latest : "1.0.6" ,
160
- Name : "RK002" ,
161
- Maintainer : "Retrokits (www.retrokits.com)" ,
162
- Website : "https://www.retrokits.com" ,
163
-
164
- Boards : []* rpc.Board {{Name : "RK002" }},
165
- Type : []string {"Contributed" },
166
- Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
169
+ Id : "Retrokits-RK002:arm" ,
170
+ Installed : "" ,
171
+ Latest : "1.0.6" ,
172
+ Name : "RK002" ,
173
+ Maintainer : "Retrokits (www.retrokits.com)" ,
174
+ Website : "https://www.retrokits.com" ,
175
+
176
+ Boards : []* rpc.Board {{Name : "RK002" }},
177
+ Type : []string {"Contributed" },
178
+ Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
179
+ Indexed : true ,
180
+ MissingMetadata : true ,
167
181
})
168
182
169
183
// Search using the Platform name
@@ -176,28 +190,32 @@ func TestPlatformSearch(t *testing.T) {
176
190
require .NotNil (t , res )
177
191
require .Len (t , res .SearchOutput , 2 )
178
192
require .Contains (t , res .SearchOutput , & rpc.Platform {
179
- Id : "Retrokits-RK002:arm" ,
180
- Installed : "" ,
181
- Latest : "1.0.5" ,
182
- Name : "RK002" ,
183
- Maintainer : "Retrokits (www.retrokits.com)" ,
184
- Website : "https://www.retrokits.com" ,
185
-
186
- Boards : []* rpc.Board {{Name : "RK002" }},
187
- Type : []string {"Contributed" },
188
- Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
193
+ Id : "Retrokits-RK002:arm" ,
194
+ Installed : "" ,
195
+ Latest : "1.0.5" ,
196
+ Name : "RK002" ,
197
+ Maintainer : "Retrokits (www.retrokits.com)" ,
198
+ Website : "https://www.retrokits.com" ,
199
+
200
+ Boards : []* rpc.Board {{Name : "RK002" }},
201
+ Type : []string {"Contributed" },
202
+ Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
203
+ Indexed : true ,
204
+ MissingMetadata : true ,
189
205
})
190
206
require .Contains (t , res .SearchOutput , & rpc.Platform {
191
- Id : "Retrokits-RK002:arm" ,
192
- Installed : "" ,
193
- Latest : "1.0.6" ,
194
- Name : "RK002" ,
195
- Maintainer : "Retrokits (www.retrokits.com)" ,
196
- Website : "https://www.retrokits.com" ,
197
-
198
- Boards : []* rpc.Board {{Name : "RK002" }},
199
- Type : []string {"Contributed" },
200
- Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
207
+ Id : "Retrokits-RK002:arm" ,
208
+ Installed : "" ,
209
+ Latest : "1.0.6" ,
210
+ Name : "RK002" ,
211
+ Maintainer : "Retrokits (www.retrokits.com)" ,
212
+ Website : "https://www.retrokits.com" ,
213
+
214
+ Boards : []* rpc.Board {{Name : "RK002" }},
215
+ Type : []string {"Contributed" },
216
+ Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
217
+ Indexed : true ,
218
+ MissingMetadata : true ,
201
219
})
202
220
203
221
// Search using a board name
@@ -246,7 +264,9 @@ func TestPlatformSearch(t *testing.T) {
246
264
{Name : "Arduino Industrial 101" },
247
265
{Name : "Linino One" },
248
266
},
249
- Help : & rpc.HelpResources {Online : "http://www.arduino.cc/en/Reference/HomePage" },
267
+ Help : & rpc.HelpResources {Online : "http://www.arduino.cc/en/Reference/HomePage" },
268
+ Indexed : true ,
269
+ MissingMetadata : true ,
250
270
})
251
271
252
272
res , stat = PlatformSearch (& rpc.PlatformSearchRequest {
@@ -294,7 +314,9 @@ func TestPlatformSearch(t *testing.T) {
294
314
{Name : "Arduino Industrial 101" },
295
315
{Name : "Linino One" },
296
316
},
297
- Help : & rpc.HelpResources {Online : "http://www.arduino.cc/en/Reference/HomePage" },
317
+ Help : & rpc.HelpResources {Online : "http://www.arduino.cc/en/Reference/HomePage" },
318
+ Indexed : true ,
319
+ MissingMetadata : true ,
298
320
})
299
321
}
300
322
0 commit comments