@@ -202,32 +202,6 @@ class ExternalPathHierarchyResolverTests: XCTestCase {
202
202
try linkResolvers. assertSuccessfullyResolves ( authoredLink: " /MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-1cyvp " )
203
203
try linkResolvers. assertSuccessfullyResolves ( authoredLink: " /MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-2vke2 " )
204
204
205
- try linkResolvers. assertSuccessfullyResolves (
206
- authoredLink: " /MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-(Int) " ,
207
- to: " doc://org.swift.MixedFramework/documentation/MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-1cyvp "
208
- )
209
- try linkResolvers. assertSuccessfullyResolves (
210
- authoredLink: " /MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-(String) " ,
211
- to: " doc://org.swift.MixedFramework/documentation/MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-2vke2 "
212
- )
213
-
214
- try linkResolvers. assertSuccessfullyResolves (
215
- authoredLink: " /MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-(Int)->Int " ,
216
- to: " doc://org.swift.MixedFramework/documentation/MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-1cyvp "
217
- )
218
- try linkResolvers. assertSuccessfullyResolves (
219
- authoredLink: " /MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-(String)->Int " ,
220
- to: " doc://org.swift.MixedFramework/documentation/MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-2vke2 "
221
- )
222
- try linkResolvers. assertSuccessfullyResolves (
223
- authoredLink: " /MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-(Int)->_ " ,
224
- to: " doc://org.swift.MixedFramework/documentation/MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-1cyvp "
225
- )
226
- try linkResolvers. assertSuccessfullyResolves (
227
- authoredLink: " /MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-(String)->_ " ,
228
- to: " doc://org.swift.MixedFramework/documentation/MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-2vke2 "
229
- )
230
-
231
205
// public enum CollisionsWithDifferentSubscriptArguments {
232
206
// public subscript(something: Int) -> Int { 0 }
233
207
// public subscript(somethingElse: String) -> Int { 0 }
@@ -236,31 +210,6 @@ class ExternalPathHierarchyResolverTests: XCTestCase {
236
210
try linkResolvers. assertSuccessfullyResolves ( authoredLink: " /MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-4fd0l " )
237
211
try linkResolvers. assertSuccessfullyResolves ( authoredLink: " /MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-757cj " )
238
212
239
- try linkResolvers. assertSuccessfullyResolves (
240
- authoredLink: " /MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-(Int) " ,
241
- to: " doc://org.swift.MixedFramework/documentation/MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-4fd0l "
242
- )
243
- try linkResolvers. assertSuccessfullyResolves (
244
- authoredLink: " /MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-(String) " ,
245
- to: " doc://org.swift.MixedFramework/documentation/MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-757cj "
246
- )
247
-
248
- try linkResolvers. assertSuccessfullyResolves (
249
- authoredLink: " /MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-(Int)->Int " ,
250
- to: " doc://org.swift.MixedFramework/documentation/MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-4fd0l "
251
- )
252
- try linkResolvers. assertSuccessfullyResolves (
253
- authoredLink: " /MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-(String)->Int " ,
254
- to: " doc://org.swift.MixedFramework/documentation/MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-757cj "
255
- )
256
- try linkResolvers. assertSuccessfullyResolves (
257
- authoredLink: " /MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-(Int)->_ " ,
258
- to: " doc://org.swift.MixedFramework/documentation/MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-4fd0l "
259
- )
260
- try linkResolvers. assertSuccessfullyResolves (
261
- authoredLink: " /MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-(String)->_ " ,
262
- to: " doc://org.swift.MixedFramework/documentation/MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-757cj "
263
- )
264
213
265
214
// @objc(MySwiftClassObjectiveCName)
266
215
// public class MySwiftClassSwiftName: NSObject {
@@ -505,24 +454,24 @@ class ExternalPathHierarchyResolverTests: XCTestCase {
505
454
authoredLink: " /MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:) " ,
506
455
errorMessage: " 'something(argument:)' is ambiguous at '/MixedFramework/CollisionsWithDifferentFunctionArguments' " ,
507
456
solutions: [
508
- . init( summary: " Insert '-(Int) ' for \n 'func something(argument: Int) -> Int' " , replacement: ( " -(Int) " , 77 , 77 ) ) ,
509
- . init( summary: " Insert '-(String) ' for \n 'func something(argument: String) -> Int' " , replacement: ( " -(String) " , 77 , 77 ) ) ,
457
+ . init( summary: " Insert '-1cyvp ' for \n 'func something(argument: Int) -> Int' " , replacement: ( " -1cyvp " , 77 , 77 ) ) ,
458
+ . init( summary: " Insert '-2vke2 ' for \n 'func something(argument: String) -> Int' " , replacement: ( " -2vke2 " , 77 , 77 ) ) ,
510
459
]
511
460
)
512
461
try linkResolvers. assertFailsToResolve (
513
462
authoredLink: " /documentation/MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:) " ,
514
463
errorMessage: " 'something(argument:)' is ambiguous at '/MixedFramework/CollisionsWithDifferentFunctionArguments' " ,
515
464
solutions: [
516
- . init( summary: " Insert '-(Int) ' for \n 'func something(argument: Int) -> Int' " , replacement: ( " -(Int) " , 91 , 91 ) ) ,
517
- . init( summary: " Insert '-(String) ' for \n 'func something(argument: String) -> Int' " , replacement: ( " -(String) " , 91 , 91 ) ) ,
465
+ . init( summary: " Insert '-1cyvp ' for \n 'func something(argument: Int) -> Int' " , replacement: ( " -1cyvp " , 91 , 91 ) ) ,
466
+ . init( summary: " Insert '-2vke2 ' for \n 'func something(argument: String) -> Int' " , replacement: ( " -2vke2 " , 91 , 91 ) ) ,
518
467
]
519
468
)
520
469
try linkResolvers. assertFailsToResolve (
521
470
authoredLink: " /MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-abc123 " ,
522
471
errorMessage: " 'abc123' isn't a disambiguation for 'something(argument:)' at '/MixedFramework/CollisionsWithDifferentFunctionArguments' " ,
523
472
solutions: [
524
- . init( summary: " Replace 'abc123' with '(Int) ' for \n 'func something(argument: Int) -> Int' " , replacement: ( " -(Int) " , 77 , 84 ) ) ,
525
- . init( summary: " Replace 'abc123' with '(String) ' for \n 'func something(argument: String) -> Int' " , replacement: ( " -(String) " , 77 , 84 ) ) ,
473
+ . init( summary: " Replace 'abc123' with '1cyvp ' for \n 'func something(argument: Int) -> Int' " , replacement: ( " -1cyvp " , 77 , 84 ) ) ,
474
+ . init( summary: " Replace 'abc123' with '2vke2 ' for \n 'func something(argument: String) -> Int' " , replacement: ( " -2vke2 " , 77 , 84 ) ) ,
526
475
]
527
476
)
528
477
// Providing disambiguation will narrow down the suggestions. Note that `argument` label is missing in the last path component
@@ -544,16 +493,16 @@ class ExternalPathHierarchyResolverTests: XCTestCase {
544
493
authoredLink: " /MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-method " ,
545
494
errorMessage: " 'something(argument:)-method' is ambiguous at '/MixedFramework/CollisionsWithDifferentFunctionArguments' " ,
546
495
solutions: [
547
- . init( summary: " Replace 'method' with '(Int) ' for \n 'func something(argument: Int) -> Int' " , replacement: ( " -(Int) " , 77 , 84 ) ) ,
548
- . init( summary: " Replace 'method' with '(String) ' for \n 'func something(argument: String) -> Int' " , replacement: ( " -(String) " , 77 , 84 ) ) ,
496
+ . init( summary: " Replace 'method' with '1cyvp ' for \n 'func something(argument: Int) -> Int' " , replacement: ( " -1cyvp " , 77 , 84 ) ) ,
497
+ . init( summary: " Replace 'method' with '2vke2 ' for \n 'func something(argument: String) -> Int' " , replacement: ( " -2vke2 " , 77 , 84 ) ) ,
549
498
]
550
499
)
551
500
try linkResolvers. assertFailsToResolve (
552
501
authoredLink: " /documentation/MixedFramework/CollisionsWithDifferentFunctionArguments/something(argument:)-method " ,
553
502
errorMessage: " 'something(argument:)-method' is ambiguous at '/MixedFramework/CollisionsWithDifferentFunctionArguments' " ,
554
503
solutions: [
555
- . init( summary: " Replace 'method' with '(Int) ' for \n 'func something(argument: Int) -> Int' " , replacement: ( " -(Int) " , 91 , 98 ) ) ,
556
- . init( summary: " Replace 'method' with '(String) ' for \n 'func something(argument: String) -> Int' " , replacement: ( " -(String) " , 91 , 98 ) ) ,
504
+ . init( summary: " Replace 'method' with '1cyvp ' for \n 'func something(argument: Int) -> Int' " , replacement: ( " -1cyvp " , 91 , 98 ) ) ,
505
+ . init( summary: " Replace 'method' with '2vke2 ' for \n 'func something(argument: String) -> Int' " , replacement: ( " -2vke2 " , 91 , 98 ) ) ,
557
506
]
558
507
)
559
508
@@ -565,16 +514,16 @@ class ExternalPathHierarchyResolverTests: XCTestCase {
565
514
authoredLink: " /MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:) " ,
566
515
errorMessage: " 'subscript(_:)' is ambiguous at '/MixedFramework/CollisionsWithDifferentSubscriptArguments' " ,
567
516
solutions: [
568
- . init( summary: " Insert '-(Int) ' for \n 'subscript(something: Int) -> Int { get }' " , replacement: ( " -(Int) " , 71 , 71 ) ) ,
569
- . init( summary: " Insert '-(String) ' for \n 'subscript(somethingElse: String) -> Int { get }' " , replacement: ( " -(String) " , 71 , 71 ) ) ,
517
+ . init( summary: " Insert '-4fd0l ' for \n 'subscript(something: Int) -> Int { get }' " , replacement: ( " -4fd0l " , 71 , 71 ) ) ,
518
+ . init( summary: " Insert '-757cj ' for \n 'subscript(somethingElse: String) -> Int { get }' " , replacement: ( " -757cj " , 71 , 71 ) ) ,
570
519
]
571
520
)
572
521
try linkResolvers. assertFailsToResolve (
573
522
authoredLink: " /MixedFramework/CollisionsWithDifferentSubscriptArguments/subscript(_:)-subscript " ,
574
523
errorMessage: " 'subscript(_:)-subscript' is ambiguous at '/MixedFramework/CollisionsWithDifferentSubscriptArguments' " ,
575
524
solutions: [
576
- . init( summary: " Replace 'subscript' with '(Int) ' for \n 'subscript(something: Int) -> Int { get }' " , replacement: ( " -(Int) " , 71 , 81 ) ) ,
577
- . init( summary: " Replace 'subscript' with '(String) ' for \n 'subscript(somethingElse: String) -> Int { get }' " , replacement: ( " -(String) " , 71 , 81 ) ) ,
525
+ . init( summary: " Replace 'subscript' with '4fd0l ' for \n 'subscript(something: Int) -> Int { get }' " , replacement: ( " -4fd0l " , 71 , 81 ) ) ,
526
+ . init( summary: " Replace 'subscript' with '757cj ' for \n 'subscript(somethingElse: String) -> Int { get }' " , replacement: ( " -757cj " , 71 , 81 ) ) ,
578
527
]
579
528
)
580
529
}
0 commit comments