@@ -71,19 +71,19 @@ func TestBuilderEmptySketch(t *testing.T) {
71
71
err := command .Run (ctx )
72
72
NoError (t , err )
73
73
74
- exist , err := buildPath .Join (constants .FOLDER_CORE , "HardwareSerial.cpp.o" ).Exist ()
74
+ exist , err := buildPath .Join (constants .FOLDER_CORE , "HardwareSerial.cpp.o" ).ExistCheck ()
75
75
NoError (t , err )
76
76
require .True (t , exist )
77
- exist , err = buildPath .Join (constants .FOLDER_PREPROC , constants .FILE_CTAGS_TARGET_FOR_GCC_MINUS_E ).Exist ()
77
+ exist , err = buildPath .Join (constants .FOLDER_PREPROC , constants .FILE_CTAGS_TARGET_FOR_GCC_MINUS_E ).ExistCheck ()
78
78
NoError (t , err )
79
79
require .True (t , exist )
80
- exist , err = buildPath .Join (constants .FOLDER_SKETCH , "sketch.ino.cpp.o" ).Exist ()
80
+ exist , err = buildPath .Join (constants .FOLDER_SKETCH , "sketch.ino.cpp.o" ).ExistCheck ()
81
81
NoError (t , err )
82
82
require .True (t , exist )
83
- exist , err = buildPath .Join ("sketch.ino.elf" ).Exist ()
83
+ exist , err = buildPath .Join ("sketch.ino.elf" ).ExistCheck ()
84
84
NoError (t , err )
85
85
require .True (t , exist )
86
- exist , err = buildPath .Join ("sketch.ino.hex" ).Exist ()
86
+ exist , err = buildPath .Join ("sketch.ino.hex" ).ExistCheck ()
87
87
NoError (t , err )
88
88
require .True (t , exist )
89
89
}
@@ -101,22 +101,22 @@ func TestBuilderBridge(t *testing.T) {
101
101
err := command .Run (ctx )
102
102
NoError (t , err )
103
103
104
- exist , err := buildPath .Join (constants .FOLDER_CORE , "HardwareSerial.cpp.o" ).Exist ()
104
+ exist , err := buildPath .Join (constants .FOLDER_CORE , "HardwareSerial.cpp.o" ).ExistCheck ()
105
105
NoError (t , err )
106
106
require .True (t , exist )
107
- exist , err = buildPath .Join (constants .FOLDER_PREPROC , constants .FILE_CTAGS_TARGET_FOR_GCC_MINUS_E ).Exist ()
107
+ exist , err = buildPath .Join (constants .FOLDER_PREPROC , constants .FILE_CTAGS_TARGET_FOR_GCC_MINUS_E ).ExistCheck ()
108
108
NoError (t , err )
109
109
require .True (t , exist )
110
- exist , err = buildPath .Join (constants .FOLDER_SKETCH , "Bridge.ino.cpp.o" ).Exist ()
110
+ exist , err = buildPath .Join (constants .FOLDER_SKETCH , "Bridge.ino.cpp.o" ).ExistCheck ()
111
111
NoError (t , err )
112
112
require .True (t , exist )
113
- exist , err = buildPath .Join ("Bridge.ino.elf" ).Exist ()
113
+ exist , err = buildPath .Join ("Bridge.ino.elf" ).ExistCheck ()
114
114
NoError (t , err )
115
115
require .True (t , exist )
116
- exist , err = buildPath .Join ("Bridge.ino.hex" ).Exist ()
116
+ exist , err = buildPath .Join ("Bridge.ino.hex" ).ExistCheck ()
117
117
NoError (t , err )
118
118
require .True (t , exist )
119
- exist , err = buildPath .Join ("libraries" , "Bridge" , "Mailbox.cpp.o" ).Exist ()
119
+ exist , err = buildPath .Join ("libraries" , "Bridge" , "Mailbox.cpp.o" ).ExistCheck ()
120
120
NoError (t , err )
121
121
require .True (t , exist )
122
122
}
@@ -134,22 +134,22 @@ func TestBuilderSketchWithConfig(t *testing.T) {
134
134
err := command .Run (ctx )
135
135
NoError (t , err )
136
136
137
- exist , err := buildPath .Join (constants .FOLDER_CORE , "HardwareSerial.cpp.o" ).Exist ()
137
+ exist , err := buildPath .Join (constants .FOLDER_CORE , "HardwareSerial.cpp.o" ).ExistCheck ()
138
138
NoError (t , err )
139
139
require .True (t , exist )
140
- exist , err = buildPath .Join (constants .FOLDER_PREPROC , constants .FILE_CTAGS_TARGET_FOR_GCC_MINUS_E ).Exist ()
140
+ exist , err = buildPath .Join (constants .FOLDER_PREPROC , constants .FILE_CTAGS_TARGET_FOR_GCC_MINUS_E ).ExistCheck ()
141
141
NoError (t , err )
142
142
require .True (t , exist )
143
- exist , err = buildPath .Join (constants .FOLDER_SKETCH , "sketch_with_config.ino.cpp.o" ).Exist ()
143
+ exist , err = buildPath .Join (constants .FOLDER_SKETCH , "sketch_with_config.ino.cpp.o" ).ExistCheck ()
144
144
NoError (t , err )
145
145
require .True (t , exist )
146
- exist , err = buildPath .Join ("sketch_with_config.ino.elf" ).Exist ()
146
+ exist , err = buildPath .Join ("sketch_with_config.ino.elf" ).ExistCheck ()
147
147
NoError (t , err )
148
148
require .True (t , exist )
149
- exist , err = buildPath .Join ("sketch_with_config.ino.hex" ).Exist ()
149
+ exist , err = buildPath .Join ("sketch_with_config.ino.hex" ).ExistCheck ()
150
150
NoError (t , err )
151
151
require .True (t , exist )
152
- exist , err = buildPath .Join ("libraries" , "Bridge" , "Mailbox.cpp.o" ).Exist ()
152
+ exist , err = buildPath .Join ("libraries" , "Bridge" , "Mailbox.cpp.o" ).ExistCheck ()
153
153
NoError (t , err )
154
154
require .True (t , exist )
155
155
}
@@ -172,22 +172,22 @@ func TestBuilderBridgeTwice(t *testing.T) {
172
172
err = command .Run (ctx )
173
173
NoError (t , err )
174
174
175
- exist , err := buildPath .Join (constants .FOLDER_CORE , "HardwareSerial.cpp.o" ).Exist ()
175
+ exist , err := buildPath .Join (constants .FOLDER_CORE , "HardwareSerial.cpp.o" ).ExistCheck ()
176
176
NoError (t , err )
177
177
require .True (t , exist )
178
- exist , err = buildPath .Join (constants .FOLDER_PREPROC , constants .FILE_CTAGS_TARGET_FOR_GCC_MINUS_E ).Exist ()
178
+ exist , err = buildPath .Join (constants .FOLDER_PREPROC , constants .FILE_CTAGS_TARGET_FOR_GCC_MINUS_E ).ExistCheck ()
179
179
NoError (t , err )
180
180
require .True (t , exist )
181
- exist , err = buildPath .Join (constants .FOLDER_SKETCH , "Bridge.ino.cpp.o" ).Exist ()
181
+ exist , err = buildPath .Join (constants .FOLDER_SKETCH , "Bridge.ino.cpp.o" ).ExistCheck ()
182
182
NoError (t , err )
183
183
require .True (t , exist )
184
- exist , err = buildPath .Join ("Bridge.ino.elf" ).Exist ()
184
+ exist , err = buildPath .Join ("Bridge.ino.elf" ).ExistCheck ()
185
185
NoError (t , err )
186
186
require .True (t , exist )
187
- exist , err = buildPath .Join ("Bridge.ino.hex" ).Exist ()
187
+ exist , err = buildPath .Join ("Bridge.ino.hex" ).ExistCheck ()
188
188
NoError (t , err )
189
189
require .True (t , exist )
190
- exist , err = buildPath .Join ("libraries" , "Bridge" , "Mailbox.cpp.o" ).Exist ()
190
+ exist , err = buildPath .Join ("libraries" , "Bridge" , "Mailbox.cpp.o" ).ExistCheck ()
191
191
NoError (t , err )
192
192
require .True (t , exist )
193
193
}
@@ -206,28 +206,28 @@ func TestBuilderBridgeSAM(t *testing.T) {
206
206
err := command .Run (ctx )
207
207
NoError (t , err )
208
208
209
- exist , err := buildPath .Join (constants .FOLDER_CORE , "syscalls_sam3.c.o" ).Exist ()
209
+ exist , err := buildPath .Join (constants .FOLDER_CORE , "syscalls_sam3.c.o" ).ExistCheck ()
210
210
NoError (t , err )
211
211
require .True (t , exist )
212
- exist , err = buildPath .Join (constants .FOLDER_CORE , "USB" , "PluggableUSB.cpp.o" ).Exist ()
212
+ exist , err = buildPath .Join (constants .FOLDER_CORE , "USB" , "PluggableUSB.cpp.o" ).ExistCheck ()
213
213
NoError (t , err )
214
214
require .True (t , exist )
215
- exist , err = buildPath .Join (constants .FOLDER_CORE , "avr" , "dtostrf.c.d" ).Exist ()
215
+ exist , err = buildPath .Join (constants .FOLDER_CORE , "avr" , "dtostrf.c.d" ).ExistCheck ()
216
216
NoError (t , err )
217
217
require .True (t , exist )
218
- exist , err = buildPath .Join (constants .FOLDER_PREPROC , constants .FILE_CTAGS_TARGET_FOR_GCC_MINUS_E ).Exist ()
218
+ exist , err = buildPath .Join (constants .FOLDER_PREPROC , constants .FILE_CTAGS_TARGET_FOR_GCC_MINUS_E ).ExistCheck ()
219
219
NoError (t , err )
220
220
require .True (t , exist )
221
- exist , err = buildPath .Join (constants .FOLDER_SKETCH , "Bridge.ino.cpp.o" ).Exist ()
221
+ exist , err = buildPath .Join (constants .FOLDER_SKETCH , "Bridge.ino.cpp.o" ).ExistCheck ()
222
222
NoError (t , err )
223
223
require .True (t , exist )
224
- exist , err = buildPath .Join ("Bridge.ino.elf" ).Exist ()
224
+ exist , err = buildPath .Join ("Bridge.ino.elf" ).ExistCheck ()
225
225
NoError (t , err )
226
226
require .True (t , exist )
227
- exist , err = buildPath .Join ("Bridge.ino.bin" ).Exist ()
227
+ exist , err = buildPath .Join ("Bridge.ino.bin" ).ExistCheck ()
228
228
NoError (t , err )
229
229
require .True (t , exist )
230
- exist , err = buildPath .Join ("libraries" , "Bridge" , "Mailbox.cpp.o" ).Exist ()
230
+ exist , err = buildPath .Join ("libraries" , "Bridge" , "Mailbox.cpp.o" ).ExistCheck ()
231
231
NoError (t , err )
232
232
require .True (t , exist )
233
233
@@ -252,22 +252,22 @@ func TestBuilderBridgeRedBearLab(t *testing.T) {
252
252
err := command .Run (ctx )
253
253
NoError (t , err )
254
254
255
- exist , err := buildPath .Join (constants .FOLDER_CORE , "HardwareSerial.cpp.o" ).Exist ()
255
+ exist , err := buildPath .Join (constants .FOLDER_CORE , "HardwareSerial.cpp.o" ).ExistCheck ()
256
256
NoError (t , err )
257
257
require .True (t , exist )
258
- exist , err = buildPath .Join (constants .FOLDER_PREPROC , constants .FILE_CTAGS_TARGET_FOR_GCC_MINUS_E ).Exist ()
258
+ exist , err = buildPath .Join (constants .FOLDER_PREPROC , constants .FILE_CTAGS_TARGET_FOR_GCC_MINUS_E ).ExistCheck ()
259
259
NoError (t , err )
260
260
require .True (t , exist )
261
- exist , err = buildPath .Join (constants .FOLDER_SKETCH , "Bridge.ino.cpp.o" ).Exist ()
261
+ exist , err = buildPath .Join (constants .FOLDER_SKETCH , "Bridge.ino.cpp.o" ).ExistCheck ()
262
262
NoError (t , err )
263
263
require .True (t , exist )
264
- exist , err = buildPath .Join ("Bridge.ino.elf" ).Exist ()
264
+ exist , err = buildPath .Join ("Bridge.ino.elf" ).ExistCheck ()
265
265
NoError (t , err )
266
266
require .True (t , exist )
267
- exist , err = buildPath .Join ("Bridge.ino.hex" ).Exist ()
267
+ exist , err = buildPath .Join ("Bridge.ino.hex" ).ExistCheck ()
268
268
NoError (t , err )
269
269
require .True (t , exist )
270
- exist , err = buildPath .Join ("libraries" , "Bridge" , "Mailbox.cpp.o" ).Exist ()
270
+ exist , err = buildPath .Join ("libraries" , "Bridge" , "Mailbox.cpp.o" ).ExistCheck ()
271
271
NoError (t , err )
272
272
require .True (t , exist )
273
273
}
@@ -347,10 +347,10 @@ func TestBuilderSketchBuildPathContainsUnusedPreviouslyCompiledLibrary(t *testin
347
347
err := command .Run (ctx )
348
348
NoError (t , err )
349
349
350
- exist , err := buildPath .Join ("libraries" , "SPI" ).Exist ()
350
+ exist , err := buildPath .Join ("libraries" , "SPI" ).ExistCheck ()
351
351
NoError (t , err )
352
352
require .False (t , exist )
353
- exist , err = buildPath .Join ("libraries" , "Bridge" ).Exist ()
353
+ exist , err = buildPath .Join ("libraries" , "Bridge" ).ExistCheck ()
354
354
NoError (t , err )
355
355
require .True (t , exist )
356
356
}
0 commit comments