@@ -32,7 +32,7 @@ func TestIncludesToIncludeFolders(t *testing.T) {
32
32
ctx := & types.Context {
33
33
HardwareDirs : paths .NewPathList (filepath .Join (".." , "hardware" ), "downloaded_hardware" ),
34
34
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
35
- BuiltInLibrariesDirs : paths .NewPathList ("downloaded_libraries" ),
35
+ BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
36
36
OtherLibrariesDirs : paths .NewPathList ("libraries" ),
37
37
SketchLocation : paths .New ("downloaded_libraries" , "Bridge" , "examples" , "Bridge" , "Bridge.ino" ),
38
38
FQBN : parseFQBN (t , "arduino:avr:leonardo" ),
@@ -68,7 +68,7 @@ func TestIncludesToIncludeFoldersSketchWithIfDef(t *testing.T) {
68
68
ctx := & types.Context {
69
69
HardwareDirs : paths .NewPathList (filepath .Join (".." , "hardware" ), "downloaded_hardware" ),
70
70
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
71
- BuiltInLibrariesDirs : paths .NewPathList ("downloaded_libraries" ),
71
+ BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
72
72
OtherLibrariesDirs : paths .NewPathList ("libraries" ),
73
73
SketchLocation : paths .New ("SketchWithIfDef" , "SketchWithIfDef.ino" ),
74
74
FQBN : parseFQBN (t , "arduino:avr:leonardo" ),
@@ -103,7 +103,7 @@ func TestIncludesToIncludeFoldersIRremoteLibrary(t *testing.T) {
103
103
ctx := & types.Context {
104
104
HardwareDirs : paths .NewPathList (filepath .Join (".." , "hardware" ), "downloaded_hardware" ),
105
105
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
106
- BuiltInLibrariesDirs : paths .NewPathList ("downloaded_libraries" ),
106
+ BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
107
107
OtherLibrariesDirs : paths .NewPathList ("libraries" ),
108
108
SketchLocation : paths .New ("sketch9" , "sketch9.ino" ),
109
109
FQBN : parseFQBN (t , "arduino:avr:leonardo" ),
@@ -141,7 +141,7 @@ func TestIncludesToIncludeFoldersANewLibrary(t *testing.T) {
141
141
ctx := & types.Context {
142
142
HardwareDirs : paths .NewPathList (filepath .Join (".." , "hardware" ), "downloaded_hardware" ),
143
143
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
144
- BuiltInLibrariesDirs : paths .NewPathList ("downloaded_libraries" ),
144
+ BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
145
145
OtherLibrariesDirs : paths .NewPathList ("libraries" ),
146
146
SketchLocation : paths .New ("sketch10" , "sketch10.ino" ),
147
147
FQBN : parseFQBN (t , "arduino:avr:leonardo" ),
@@ -176,7 +176,7 @@ func TestIncludesToIncludeFoldersDuplicateLibs(t *testing.T) {
176
176
ctx := & types.Context {
177
177
HardwareDirs : paths .NewPathList (filepath .Join (".." , "hardware" ), "downloaded_hardware" , "user_hardware" ),
178
178
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
179
- BuiltInLibrariesDirs : paths .NewPathList ("downloaded_libraries" ),
179
+ BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
180
180
SketchLocation : paths .New ("user_hardware" , "my_avr_platform" , "avr" , "libraries" , "SPI" , "examples" , "BarometricPressureSensor" , "BarometricPressureSensor.ino" ),
181
181
FQBN : parseFQBN (t , "my_avr_platform:avr:custom_yun" ),
182
182
ArduinoAPIVersion : "10600" ,
@@ -213,7 +213,7 @@ func TestIncludesToIncludeFoldersDuplicateLibsWithConflictingLibsOutsideOfPlatfo
213
213
ctx := & types.Context {
214
214
HardwareDirs : paths .NewPathList (filepath .Join (".." , "hardware" ), "downloaded_hardware" , "user_hardware" ),
215
215
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
216
- BuiltInLibrariesDirs : paths .NewPathList ("downloaded_libraries" ),
216
+ BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
217
217
OtherLibrariesDirs : paths .NewPathList ("libraries" ),
218
218
SketchLocation : paths .New ("user_hardware" , "my_avr_platform" , "avr" , "libraries" , "SPI" , "examples" , "BarometricPressureSensor" , "BarometricPressureSensor.ino" ),
219
219
FQBN : parseFQBN (t , "my_avr_platform:avr:custom_yun" ),
@@ -251,7 +251,7 @@ func TestIncludesToIncludeFoldersDuplicateLibs2(t *testing.T) {
251
251
ctx := & types.Context {
252
252
HardwareDirs : paths .NewPathList (filepath .Join (".." , "hardware" ), "downloaded_hardware" , "downloaded_board_manager_stuff" ),
253
253
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
254
- BuiltInLibrariesDirs : paths .NewPathList ("downloaded_libraries" ),
254
+ BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
255
255
OtherLibrariesDirs : paths .NewPathList ("libraries" ),
256
256
SketchLocation : paths .New ("sketch_usbhost" , "sketch_usbhost.ino" ),
257
257
FQBN : parseFQBN (t , "arduino:samd:arduino_zero_native" ),
@@ -289,7 +289,7 @@ func TestIncludesToIncludeFoldersSubfolders(t *testing.T) {
289
289
ctx := & types.Context {
290
290
HardwareDirs : paths .NewPathList (filepath .Join (".." , "hardware" ), "downloaded_hardware" ),
291
291
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
292
- BuiltInLibrariesDirs : paths .NewPathList ("downloaded_libraries" ),
292
+ BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
293
293
OtherLibrariesDirs : paths .NewPathList ("libraries" ),
294
294
SketchLocation : paths .New ("sketch_with_subfolders" , "sketch_with_subfolders.ino" ),
295
295
FQBN : parseFQBN (t , "arduino:avr:leonardo" ),
0 commit comments