@@ -27,7 +27,6 @@ import (
27
27
)
28
28
29
29
func TestPlatformSearch (t * testing.T ) {
30
-
31
30
dataDir := paths .TempDir ().Join ("test" , "data_dir" )
32
31
downloadDir := paths .TempDir ().Join ("test" , "staging" )
33
32
os .Setenv ("ARDUINO_DATA_DIR" , dataDir .String ())
@@ -65,6 +64,7 @@ func TestPlatformSearch(t *testing.T) {
65
64
Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
66
65
Indexed : true ,
67
66
MissingMetadata : true ,
67
+ Incompatible : true ,
68
68
})
69
69
require .Contains (t , res .SearchOutput , & rpc.Platform {
70
70
Id : "Retrokits-RK002:arm" ,
@@ -79,6 +79,7 @@ func TestPlatformSearch(t *testing.T) {
79
79
Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
80
80
Indexed : true ,
81
81
MissingMetadata : true ,
82
+ Incompatible : true ,
82
83
})
83
84
84
85
res , stat = PlatformSearch (& rpc.PlatformSearchRequest {
@@ -102,6 +103,7 @@ func TestPlatformSearch(t *testing.T) {
102
103
Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
103
104
Indexed : true ,
104
105
MissingMetadata : true ,
106
+ Incompatible : true ,
105
107
})
106
108
107
109
// Search the Package Maintainer
@@ -126,6 +128,7 @@ func TestPlatformSearch(t *testing.T) {
126
128
Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
127
129
Indexed : true ,
128
130
MissingMetadata : true ,
131
+ Incompatible : true ,
129
132
})
130
133
require .Contains (t , res .SearchOutput , & rpc.Platform {
131
134
Id : "Retrokits-RK002:arm" ,
@@ -140,6 +143,7 @@ func TestPlatformSearch(t *testing.T) {
140
143
Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
141
144
Indexed : true ,
142
145
MissingMetadata : true ,
146
+ Incompatible : true ,
143
147
})
144
148
145
149
// Search using the Package name
@@ -164,6 +168,7 @@ func TestPlatformSearch(t *testing.T) {
164
168
Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
165
169
Indexed : true ,
166
170
MissingMetadata : true ,
171
+ Incompatible : true ,
167
172
})
168
173
require .Contains (t , res .SearchOutput , & rpc.Platform {
169
174
Id : "Retrokits-RK002:arm" ,
@@ -178,6 +183,7 @@ func TestPlatformSearch(t *testing.T) {
178
183
Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
179
184
Indexed : true ,
180
185
MissingMetadata : true ,
186
+ Incompatible : true ,
181
187
})
182
188
183
189
// Search using the Platform name
@@ -202,6 +208,7 @@ func TestPlatformSearch(t *testing.T) {
202
208
Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
203
209
Indexed : true ,
204
210
MissingMetadata : true ,
211
+ Incompatible : true ,
205
212
})
206
213
require .Contains (t , res .SearchOutput , & rpc.Platform {
207
214
Id : "Retrokits-RK002:arm" ,
@@ -216,6 +223,7 @@ func TestPlatformSearch(t *testing.T) {
216
223
Help : & rpc.HelpResources {Online : "https://www.retrokits.com/rk002/arduino" },
217
224
Indexed : true ,
218
225
MissingMetadata : true ,
226
+ Incompatible : true ,
219
227
})
220
228
221
229
// Search using a board name
@@ -267,6 +275,7 @@ func TestPlatformSearch(t *testing.T) {
267
275
Help : & rpc.HelpResources {Online : "http://www.arduino.cc/en/Reference/HomePage" },
268
276
Indexed : true ,
269
277
MissingMetadata : true ,
278
+ Incompatible : true ,
270
279
})
271
280
272
281
res , stat = PlatformSearch (& rpc.PlatformSearchRequest {
@@ -317,6 +326,7 @@ func TestPlatformSearch(t *testing.T) {
317
326
Help : & rpc.HelpResources {Online : "http://www.arduino.cc/en/Reference/HomePage" },
318
327
Indexed : true ,
319
328
MissingMetadata : true ,
329
+ Incompatible : true ,
320
330
})
321
331
}
322
332
0 commit comments