Skip to content

Commit a0067b7

Browse files
committed
Skip useless operations in legacy test
1 parent f3715e4 commit a0067b7

File tree

1 file changed

+0
-147
lines changed

1 file changed

+0
-147
lines changed

Diff for: legacy/builder/test/prototypes_adder_test.go

-147
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,9 @@ func TestPrototypesAdderBridgeExample(t *testing.T) {
4848
defer buildPath.RemoveAll()
4949

5050
commands := []types.Command{
51-
5251
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
53-
5452
&builder.ContainerMergeCopySketchFiles{},
55-
5653
&builder.ContainerFindIncludes{},
57-
58-
&builder.PrintUsedLibrariesIfVerbose{},
59-
&builder.WarnAboutArchIncompatibleLibraries{},
60-
6154
&builder.ContainerAddPrototypes{},
6255
}
6356

@@ -87,16 +80,9 @@ func TestPrototypesAdderSketchWithIfDef(t *testing.T) {
8780
defer buildPath.RemoveAll()
8881

8982
commands := []types.Command{
90-
9183
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
92-
9384
&builder.ContainerMergeCopySketchFiles{},
94-
9585
&builder.ContainerFindIncludes{},
96-
97-
&builder.PrintUsedLibrariesIfVerbose{},
98-
&builder.WarnAboutArchIncompatibleLibraries{},
99-
10086
&builder.ContainerAddPrototypes{},
10187
}
10288

@@ -126,16 +112,9 @@ func TestPrototypesAdderBaladuino(t *testing.T) {
126112
defer buildPath.RemoveAll()
127113

128114
commands := []types.Command{
129-
130115
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
131-
132116
&builder.ContainerMergeCopySketchFiles{},
133-
134117
&builder.ContainerFindIncludes{},
135-
136-
&builder.PrintUsedLibrariesIfVerbose{},
137-
&builder.WarnAboutArchIncompatibleLibraries{},
138-
139118
&builder.ContainerAddPrototypes{},
140119
}
141120

@@ -165,16 +144,9 @@ func TestPrototypesAdderCharWithEscapedDoubleQuote(t *testing.T) {
165144
defer buildPath.RemoveAll()
166145

167146
commands := []types.Command{
168-
169147
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
170-
171148
&builder.ContainerMergeCopySketchFiles{},
172-
173149
&builder.ContainerFindIncludes{},
174-
175-
&builder.PrintUsedLibrariesIfVerbose{},
176-
&builder.WarnAboutArchIncompatibleLibraries{},
177-
178150
&builder.ContainerAddPrototypes{},
179151
}
180152

@@ -204,16 +176,9 @@ func TestPrototypesAdderIncludeBetweenMultilineComment(t *testing.T) {
204176
defer buildPath.RemoveAll()
205177

206178
commands := []types.Command{
207-
208179
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
209-
210180
&builder.ContainerMergeCopySketchFiles{},
211-
212181
&builder.ContainerFindIncludes{},
213-
214-
&builder.PrintUsedLibrariesIfVerbose{},
215-
&builder.WarnAboutArchIncompatibleLibraries{},
216-
217182
&builder.ContainerAddPrototypes{},
218183
}
219184

@@ -243,16 +208,9 @@ func TestPrototypesAdderLineContinuations(t *testing.T) {
243208
defer buildPath.RemoveAll()
244209

245210
commands := []types.Command{
246-
247211
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
248-
249212
&builder.ContainerMergeCopySketchFiles{},
250-
251213
&builder.ContainerFindIncludes{},
252-
253-
&builder.PrintUsedLibrariesIfVerbose{},
254-
&builder.WarnAboutArchIncompatibleLibraries{},
255-
256214
&builder.ContainerAddPrototypes{},
257215
}
258216

@@ -282,16 +240,9 @@ func TestPrototypesAdderStringWithComment(t *testing.T) {
282240
defer buildPath.RemoveAll()
283241

284242
commands := []types.Command{
285-
286243
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
287-
288244
&builder.ContainerMergeCopySketchFiles{},
289-
290245
&builder.ContainerFindIncludes{},
291-
292-
&builder.PrintUsedLibrariesIfVerbose{},
293-
&builder.WarnAboutArchIncompatibleLibraries{},
294-
295246
&builder.ContainerAddPrototypes{},
296247
}
297248

@@ -321,16 +272,9 @@ func TestPrototypesAdderSketchWithStruct(t *testing.T) {
321272
defer buildPath.RemoveAll()
322273

323274
commands := []types.Command{
324-
325275
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
326-
327276
&builder.ContainerMergeCopySketchFiles{},
328-
329277
&builder.ContainerFindIncludes{},
330-
331-
&builder.PrintUsedLibrariesIfVerbose{},
332-
&builder.WarnAboutArchIncompatibleLibraries{},
333-
334278
&builder.ContainerAddPrototypes{},
335279
}
336280

@@ -368,16 +312,9 @@ func TestPrototypesAdderSketchWithConfig(t *testing.T) {
368312
defer buildPath.RemoveAll()
369313

370314
commands := []types.Command{
371-
372315
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
373-
374316
&builder.ContainerMergeCopySketchFiles{},
375-
376317
&builder.ContainerFindIncludes{},
377-
378-
&builder.PrintUsedLibrariesIfVerbose{},
379-
&builder.WarnAboutArchIncompatibleLibraries{},
380-
381318
&builder.ContainerAddPrototypes{},
382319
}
383320

@@ -413,16 +350,9 @@ func TestPrototypesAdderSketchNoFunctionsTwoFiles(t *testing.T) {
413350
defer buildPath.RemoveAll()
414351

415352
commands := []types.Command{
416-
417353
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
418-
419354
&builder.ContainerMergeCopySketchFiles{},
420-
421355
&builder.ContainerFindIncludes{},
422-
423-
&builder.PrintUsedLibrariesIfVerbose{},
424-
&builder.WarnAboutArchIncompatibleLibraries{},
425-
426356
&builder.ContainerAddPrototypes{},
427357
}
428358

@@ -455,16 +385,9 @@ func TestPrototypesAdderSketchNoFunctions(t *testing.T) {
455385
quotedSketchLocation := utils.QuoteCppPath(Abs(t, sketchLocation))
456386

457387
commands := []types.Command{
458-
459388
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
460-
461389
&builder.ContainerMergeCopySketchFiles{},
462-
463390
&builder.ContainerFindIncludes{},
464-
465-
&builder.PrintUsedLibrariesIfVerbose{},
466-
&builder.WarnAboutArchIncompatibleLibraries{},
467-
468391
&builder.ContainerAddPrototypes{},
469392
}
470393

@@ -497,16 +420,9 @@ func TestPrototypesAdderSketchWithDefaultArgs(t *testing.T) {
497420
defer buildPath.RemoveAll()
498421

499422
commands := []types.Command{
500-
501423
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
502-
503424
&builder.ContainerMergeCopySketchFiles{},
504-
505425
&builder.ContainerFindIncludes{},
506-
507-
&builder.PrintUsedLibrariesIfVerbose{},
508-
&builder.WarnAboutArchIncompatibleLibraries{},
509-
510426
&builder.ContainerAddPrototypes{},
511427
}
512428

@@ -539,16 +455,9 @@ func TestPrototypesAdderSketchWithInlineFunction(t *testing.T) {
539455
defer buildPath.RemoveAll()
540456

541457
commands := []types.Command{
542-
543458
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
544-
545459
&builder.ContainerMergeCopySketchFiles{},
546-
547460
&builder.ContainerFindIncludes{},
548-
549-
&builder.PrintUsedLibrariesIfVerbose{},
550-
&builder.WarnAboutArchIncompatibleLibraries{},
551-
552461
&builder.ContainerAddPrototypes{},
553462
}
554463

@@ -592,16 +501,9 @@ func TestPrototypesAdderSketchWithFunctionSignatureInsideIFDEF(t *testing.T) {
592501
defer buildPath.RemoveAll()
593502

594503
commands := []types.Command{
595-
596504
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
597-
598505
&builder.ContainerMergeCopySketchFiles{},
599-
600506
&builder.ContainerFindIncludes{},
601-
602-
&builder.PrintUsedLibrariesIfVerbose{},
603-
&builder.WarnAboutArchIncompatibleLibraries{},
604-
605507
&builder.ContainerAddPrototypes{},
606508
}
607509

@@ -634,16 +536,9 @@ func TestPrototypesAdderSketchWithUSBCON(t *testing.T) {
634536
defer buildPath.RemoveAll()
635537

636538
commands := []types.Command{
637-
638539
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
639-
640540
&builder.ContainerMergeCopySketchFiles{},
641-
642541
&builder.ContainerFindIncludes{},
643-
644-
&builder.PrintUsedLibrariesIfVerbose{},
645-
&builder.WarnAboutArchIncompatibleLibraries{},
646-
647542
&builder.ContainerAddPrototypes{},
648543
}
649544

@@ -675,16 +570,9 @@ func TestPrototypesAdderSketchWithTypename(t *testing.T) {
675570
defer buildPath.RemoveAll()
676571

677572
commands := []types.Command{
678-
679573
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
680-
681574
&builder.ContainerMergeCopySketchFiles{},
682-
683575
&builder.ContainerFindIncludes{},
684-
685-
&builder.PrintUsedLibrariesIfVerbose{},
686-
&builder.WarnAboutArchIncompatibleLibraries{},
687-
688576
&builder.ContainerAddPrototypes{},
689577
}
690578

@@ -723,16 +611,9 @@ func TestPrototypesAdderSketchWithIfDef2(t *testing.T) {
723611
defer buildPath.RemoveAll()
724612

725613
commands := []types.Command{
726-
727614
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
728-
729615
&builder.ContainerMergeCopySketchFiles{},
730-
731616
&builder.ContainerFindIncludes{},
732-
733-
&builder.PrintUsedLibrariesIfVerbose{},
734-
&builder.WarnAboutArchIncompatibleLibraries{},
735-
736617
&builder.ContainerAddPrototypes{},
737618
}
738619

@@ -768,16 +649,9 @@ func TestPrototypesAdderSketchWithIfDef2SAM(t *testing.T) {
768649
defer buildPath.RemoveAll()
769650

770651
commands := []types.Command{
771-
772652
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
773-
774653
&builder.ContainerMergeCopySketchFiles{},
775-
776654
&builder.ContainerFindIncludes{},
777-
778-
&builder.PrintUsedLibrariesIfVerbose{},
779-
&builder.WarnAboutArchIncompatibleLibraries{},
780-
781655
&builder.ContainerAddPrototypes{},
782656
}
783657

@@ -813,16 +687,9 @@ func TestPrototypesAdderSketchWithConst(t *testing.T) {
813687
defer buildPath.RemoveAll()
814688

815689
commands := []types.Command{
816-
817690
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
818-
819691
&builder.ContainerMergeCopySketchFiles{},
820-
821692
&builder.ContainerFindIncludes{},
822-
823-
&builder.PrintUsedLibrariesIfVerbose{},
824-
&builder.WarnAboutArchIncompatibleLibraries{},
825-
826693
&builder.ContainerAddPrototypes{},
827694
}
828695

@@ -852,16 +719,9 @@ func TestPrototypesAdderSketchWithDosEol(t *testing.T) {
852719
defer buildPath.RemoveAll()
853720

854721
commands := []types.Command{
855-
856722
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
857-
858723
&builder.ContainerMergeCopySketchFiles{},
859-
860724
&builder.ContainerFindIncludes{},
861-
862-
&builder.PrintUsedLibrariesIfVerbose{},
863-
&builder.WarnAboutArchIncompatibleLibraries{},
864-
865725
&builder.ContainerAddPrototypes{},
866726
}
867727

@@ -891,16 +751,9 @@ func TestPrototypesAdderSketchWithSubstringFunctionMember(t *testing.T) {
891751
defer buildPath.RemoveAll()
892752

893753
commands := []types.Command{
894-
895754
&builder.ContainerSetupHardwareToolsLibsSketchAndProps{},
896-
897755
&builder.ContainerMergeCopySketchFiles{},
898-
899756
&builder.ContainerFindIncludes{},
900-
901-
&builder.PrintUsedLibrariesIfVerbose{},
902-
&builder.WarnAboutArchIncompatibleLibraries{},
903-
904757
&builder.ContainerAddPrototypes{},
905758
}
906759

0 commit comments

Comments
 (0)