@@ -45,6 +45,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
45
45
}
46
46
47
47
func testBasicCompletion( ) async throws {
48
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
48
49
let sourcekitd = try await getSourceKitD ( )
49
50
let path = scratchFilePath ( )
50
51
let positions = try await sourcekitd. openDocument (
@@ -166,6 +167,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
166
167
}
167
168
168
169
func testEmptyName( ) async throws {
170
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
169
171
let sourcekitd = try await getSourceKitD ( )
170
172
let path = scratchFilePath ( )
171
173
let positions = try await sourcekitd. openDocument (
@@ -205,6 +207,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
205
207
}
206
208
207
209
func testMultipleFiles( ) async throws {
210
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
208
211
let sourcekitd = try await getSourceKitD ( )
209
212
let pathA = scratchFilePath ( fileName: " a.swift " )
210
213
let pathB = scratchFilePath ( fileName: " b.swift " )
@@ -269,6 +272,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
269
272
}
270
273
271
274
func testCancellation( ) async throws {
275
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
272
276
let sourcekitd = try await getSourceKitD ( )
273
277
let path = scratchFilePath ( )
274
278
let positions = try await sourcekitd. openDocument (
@@ -335,6 +339,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
335
339
}
336
340
337
341
func testEdits( ) async throws {
342
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
338
343
let sourcekitd = try await getSourceKitD ( )
339
344
let path = scratchFilePath ( )
340
345
let positions = try await sourcekitd. openDocument (
@@ -393,6 +398,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
393
398
}
394
399
395
400
func testDocumentation( ) async throws {
401
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
396
402
let sourcekitd = try await getSourceKitD ( )
397
403
let path = scratchFilePath ( )
398
404
let positions = try await sourcekitd. openDocument (
@@ -439,6 +445,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
439
445
}
440
446
441
447
func testNumBytesToErase( ) async throws {
448
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
442
449
let sourcekitd = try await getSourceKitD ( )
443
450
let path = scratchFilePath ( )
444
451
let positions = try await sourcekitd. openDocument (
@@ -472,6 +479,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
472
479
}
473
480
474
481
func testObjectLiterals( ) async throws {
482
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
475
483
let sourcekitd = try await getSourceKitD ( )
476
484
let path = scratchFilePath ( )
477
485
let positions = try await sourcekitd. openDocument (
@@ -496,6 +504,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
496
504
}
497
505
498
506
func testAddInitsToTopLevel( ) async throws {
507
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
499
508
let sourcekitd = try await getSourceKitD ( )
500
509
let path = scratchFilePath ( )
501
510
let positions = try await sourcekitd. openDocument (
@@ -554,6 +563,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
554
563
}
555
564
556
565
func testMembersGroupID( ) async throws {
566
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
557
567
let sourcekitd = try await getSourceKitD ( )
558
568
let path = scratchFilePath ( )
559
569
let positions = try await sourcekitd. openDocument (
@@ -599,6 +609,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
599
609
}
600
610
601
611
func testAddCallWithNoDefaultArgs( ) async throws {
612
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
602
613
let sourcekitd = try await getSourceKitD ( )
603
614
let path = scratchFilePath ( )
604
615
let positions = try await sourcekitd. openDocument (
@@ -647,6 +658,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
647
658
}
648
659
649
660
func testTextMatchScore( ) async throws {
661
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
650
662
let sourcekitd = try await getSourceKitD ( )
651
663
let path = scratchFilePath ( )
652
664
let positions = try await sourcekitd. openDocument (
@@ -695,6 +707,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
695
707
}
696
708
697
709
func testSemanticScore( ) async throws {
710
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
698
711
let sourcekitd = try await getSourceKitD ( )
699
712
let path = scratchFilePath ( )
700
713
let positions = try await sourcekitd. openDocument (
@@ -737,6 +750,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
737
750
}
738
751
739
752
func testSemanticScoreInit( ) async throws {
753
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
740
754
let sourcekitd = try await getSourceKitD ( )
741
755
let path = scratchFilePath ( )
742
756
let positions = try await sourcekitd. openDocument (
@@ -785,6 +799,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
785
799
}
786
800
787
801
func testSemanticScoreComponents( ) async throws {
802
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
788
803
let sourcekitd = try await getSourceKitD ( )
789
804
let path = scratchFilePath ( )
790
805
let positions = try await sourcekitd. openDocument (
@@ -818,6 +833,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
818
833
}
819
834
820
835
func testMemberAccessTypes( ) async throws {
836
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
821
837
let sourcekitd = try await getSourceKitD ( )
822
838
let path = scratchFilePath ( fileName: " AnimalKit.swift " )
823
839
let positions = try await sourcekitd. openDocument (
@@ -864,6 +880,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
864
880
}
865
881
866
882
func testTypeModule( ) async throws {
883
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
867
884
let sourcekitd = try await getSourceKitD ( )
868
885
let path = scratchFilePath ( fileName: " AnimalKit.swift " )
869
886
let positions = try await sourcekitd. openDocument (
@@ -893,6 +910,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
893
910
}
894
911
895
912
func testKeyword( ) async throws {
913
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
896
914
let sourcekitd = try await getSourceKitD ( )
897
915
let path = scratchFilePath ( )
898
916
let positions = try await sourcekitd. openDocument (
@@ -918,6 +936,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
918
936
}
919
937
920
938
func testSemanticScoreComponentsAsExtraUpdate( ) async throws {
939
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
921
940
let sourcekitd = try await getSourceKitD ( )
922
941
let path = scratchFilePath ( )
923
942
let positions = try await sourcekitd. openDocument (
@@ -986,6 +1005,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
986
1005
#if !os(macOS)
987
1006
try XCTSkipIf ( true , " AppKit is only defined on macOS " )
988
1007
#endif
1008
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
989
1009
let sourcekitd = try await getSourceKitD ( )
990
1010
let path = scratchFilePath ( )
991
1011
let positions = try await sourcekitd. openDocument (
@@ -1034,6 +1054,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
1034
1054
}
1035
1055
1036
1056
func testPopularity( ) async throws {
1057
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
1037
1058
let sourcekitd = try await getSourceKitD ( )
1038
1059
let path = scratchFilePath ( )
1039
1060
let positions = try await sourcekitd. openDocument (
@@ -1123,6 +1144,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
1123
1144
}
1124
1145
1125
1146
func testScopedPopularity( ) async throws {
1147
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
1126
1148
let sourcekitd = try await getSourceKitD ( )
1127
1149
let path = scratchFilePath ( )
1128
1150
let positions = try await sourcekitd. openDocument (
@@ -1196,6 +1218,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
1196
1218
}
1197
1219
1198
1220
func testModulePopularity( ) async throws {
1221
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
1199
1222
let sourcekitd = try await getSourceKitD ( )
1200
1223
let path = scratchFilePath ( )
1201
1224
let positions = try await sourcekitd. openDocument (
@@ -1262,6 +1285,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
1262
1285
}
1263
1286
1264
1287
func testFlair( ) async throws {
1288
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
1265
1289
let sourcekitd = try await getSourceKitD ( )
1266
1290
let path = scratchFilePath ( )
1267
1291
let positions = try await sourcekitd. openDocument (
@@ -1292,6 +1316,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
1292
1316
}
1293
1317
1294
1318
func testPluginFilterAndSortPerfAllMatch( ) async throws {
1319
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
1295
1320
let sourcekitd = try await getSourceKitD ( )
1296
1321
let path = scratchFilePath ( )
1297
1322
let ( position, recent) = try await sourcekitd. perfTestSetup ( path: path)
@@ -1331,6 +1356,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
1331
1356
}
1332
1357
1333
1358
func testPluginFilterAndSortPerfFiltered( ) async throws {
1359
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
1334
1360
let sourcekitd = try await getSourceKitD ( )
1335
1361
let path = scratchFilePath ( )
1336
1362
let ( position, recent) = try await sourcekitd. perfTestSetup ( path: path)
@@ -1399,6 +1425,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
1399
1425
] )
1400
1426
1401
1427
// Open document in sourcekitd
1428
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
1402
1429
let sourcekitd = try await getSourceKitD ( )
1403
1430
let libBPath = try project. uri ( for: " LibB.swift " ) . pseudoPath
1404
1431
try await sourcekitd. openDocument (
@@ -1471,6 +1498,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
1471
1498
""" ,
1472
1499
] )
1473
1500
1501
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
1474
1502
let sourcekitd = try await getSourceKitD ( )
1475
1503
let mainPath = try project. uri ( for: " Main.swift " ) . pseudoPath
1476
1504
try await sourcekitd. openDocument (
@@ -1503,6 +1531,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
1503
1531
#if !os(macOS)
1504
1532
try XCTSkipIf ( true , " Soft deprecation is only defined for macOS in this test case " )
1505
1533
#endif
1534
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
1506
1535
let sourcekitd = try await getSourceKitD ( )
1507
1536
let path = scratchFilePath ( )
1508
1537
let positions = try await sourcekitd. openDocument (
@@ -1568,6 +1597,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
1568
1597
}
1569
1598
1570
1599
func testActorKind( ) async throws {
1600
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
1571
1601
let sourcekitd = try await getSourceKitD ( )
1572
1602
let path = scratchFilePath ( )
1573
1603
let positions = try await sourcekitd. openDocument (
@@ -1587,6 +1617,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
1587
1617
}
1588
1618
1589
1619
func testMacroKind( ) async throws {
1620
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
1590
1621
let sourcekitd = try await getSourceKitD ( )
1591
1622
let path = scratchFilePath ( )
1592
1623
let positions = try await sourcekitd. openDocument (
@@ -1616,6 +1647,7 @@ final class SwiftSourceKitPluginTests: XCTestCase {
1616
1647
}
1617
1648
1618
1649
func testMaxResults( ) async throws {
1650
+ try await SkipUnless . sourcekitdSupportsPlugin ( )
1619
1651
let sourcekitd = try await getSourceKitD ( )
1620
1652
let path = scratchFilePath ( )
1621
1653
var sourceText = " //dummy \n " ;
0 commit comments