@@ -57,7 +57,7 @@ final class LocalSwiftTests: XCTestCase {
57
57
}
58
58
59
59
func testEditing( ) {
60
- let url = URL ( fileURLWithPath: " /a.swift " )
60
+ let url = URL ( fileURLWithPath: " / \( #function ) / a.swift" )
61
61
let uri = DocumentURI ( url)
62
62
63
63
sk. allowUnexpectedNotification = false
@@ -343,8 +343,8 @@ final class LocalSwiftTests: XCTestCase {
343
343
}
344
344
345
345
func testCrossFileDiagnostics( ) {
346
- let urlA = URL ( fileURLWithPath: " /a.swift " )
347
- let urlB = URL ( fileURLWithPath: " /b.swift " )
346
+ let urlA = URL ( fileURLWithPath: " / \( #function ) / a.swift" )
347
+ let urlB = URL ( fileURLWithPath: " / \( #function ) / b.swift" )
348
348
let uriA = DocumentURI ( urlA)
349
349
let uriB = DocumentURI ( urlB)
350
350
@@ -404,7 +404,7 @@ final class LocalSwiftTests: XCTestCase {
404
404
}
405
405
406
406
func testDiagnosticsReopen( ) {
407
- let urlA = URL ( fileURLWithPath: " /a.swift " )
407
+ let urlA = URL ( fileURLWithPath: " / \( #function ) / a.swift" )
408
408
let uriA = DocumentURI ( urlA)
409
409
sk. allowUnexpectedNotification = false
410
410
@@ -454,7 +454,7 @@ final class LocalSwiftTests: XCTestCase {
454
454
}
455
455
456
456
func testFixitsAreIncludedInPublishDiagnostics( ) {
457
- let url = URL ( fileURLWithPath: " /a.swift " )
457
+ let url = URL ( fileURLWithPath: " / \( #function ) / a.swift" )
458
458
let uri = DocumentURI ( url)
459
459
460
460
sk. allowUnexpectedNotification = false
@@ -488,7 +488,7 @@ final class LocalSwiftTests: XCTestCase {
488
488
}
489
489
490
490
func testFixitsAreIncludedInPublishDiagnosticsNotes( ) {
491
- let url = URL ( fileURLWithPath: " /a.swift " )
491
+ let url = URL ( fileURLWithPath: " / \( #function ) / a.swift" )
492
492
let uri = DocumentURI ( url)
493
493
494
494
sk. allowUnexpectedNotification = false
@@ -541,7 +541,7 @@ final class LocalSwiftTests: XCTestCase {
541
541
}
542
542
543
543
func testFixitInsert( ) {
544
- let url = URL ( fileURLWithPath: " /a.swift " )
544
+ let url = URL ( fileURLWithPath: " / \( #function ) / a.swift" )
545
545
let uri = DocumentURI ( url)
546
546
547
547
sk. allowUnexpectedNotification = false
@@ -581,7 +581,7 @@ final class LocalSwiftTests: XCTestCase {
581
581
}
582
582
583
583
func testFixitsAreReturnedFromCodeActions( ) {
584
- let url = URL ( fileURLWithPath: " /a.swift " )
584
+ let url = URL ( fileURLWithPath: " / \( #function ) / a.swift" )
585
585
let uri = DocumentURI ( url)
586
586
587
587
var diagnostic : Diagnostic ! = nil
@@ -635,7 +635,7 @@ final class LocalSwiftTests: XCTestCase {
635
635
}
636
636
637
637
func testFixitsAreReturnedFromCodeActionsNotes( ) {
638
- let url = URL ( fileURLWithPath: " /a.swift " )
638
+ let url = URL ( fileURLWithPath: " / \( #function ) / a.swift" )
639
639
let uri = DocumentURI ( url)
640
640
641
641
var diagnostic : Diagnostic ! = nil
@@ -690,7 +690,7 @@ final class LocalSwiftTests: XCTestCase {
690
690
}
691
691
692
692
func testMuliEditFixitCodeActionPrimary( ) {
693
- let url = URL ( fileURLWithPath: " /a.swift " )
693
+ let url = URL ( fileURLWithPath: " / \( #function ) / a.swift" )
694
694
let uri = DocumentURI ( url)
695
695
696
696
var diagnostic : Diagnostic ! = nil
@@ -733,8 +733,7 @@ final class LocalSwiftTests: XCTestCase {
733
733
}
734
734
735
735
func testMuliEditFixitCodeActionNote( ) {
736
- #if os(macOS)
737
- let url = URL ( fileURLWithPath: " /a.swift " )
736
+ let url = URL ( fileURLWithPath: " / \( #function) /a.swift " )
738
737
let uri = DocumentURI ( url)
739
738
740
739
var diagnostic : Diagnostic ! = nil
@@ -779,7 +778,6 @@ final class LocalSwiftTests: XCTestCase {
779
778
TextEdit ( range: Position ( line: 3 , utf16index: 6 ) ..< Position ( line: 3 , utf16index: 11 ) , newText: " " ) ,
780
779
TextEdit ( range: Position ( line: 3 , utf16index: 14 ) ..< Position ( line: 3 , utf16index: 20 ) , newText: " hotness " ) ,
781
780
] )
782
- #endif
783
781
}
784
782
785
783
func testXMLToMarkdownDeclaration( ) {
@@ -1036,7 +1034,7 @@ final class LocalSwiftTests: XCTestCase {
1036
1034
}
1037
1035
1038
1036
func testSymbolInfo( ) {
1039
- let url = URL ( fileURLWithPath: " /a.swift " )
1037
+ let url = URL ( fileURLWithPath: " / \( #function ) / a.swift" )
1040
1038
let uri = DocumentURI ( url)
1041
1039
1042
1040
sk. send ( DidOpenTextDocumentNotification ( textDocument: TextDocumentItem (
@@ -1109,7 +1107,7 @@ final class LocalSwiftTests: XCTestCase {
1109
1107
}
1110
1108
1111
1109
func testHover( ) {
1112
- let url = URL ( fileURLWithPath: " /a.swift " )
1110
+ let url = URL ( fileURLWithPath: " / \( #function ) / a.swift" )
1113
1111
let uri = DocumentURI ( url)
1114
1112
1115
1113
sk. send ( DidOpenTextDocumentNotification ( textDocument: TextDocumentItem (
@@ -1161,7 +1159,7 @@ final class LocalSwiftTests: XCTestCase {
1161
1159
}
1162
1160
1163
1161
func testHoverNameEscaping( ) {
1164
- let url = URL ( fileURLWithPath: " /a.swift " )
1162
+ let url = URL ( fileURLWithPath: " / \( #function ) / a.swift" )
1165
1163
1166
1164
sk. send ( DidOpenTextDocumentNotification ( textDocument: TextDocumentItem (
1167
1165
uri: DocumentURI ( url) ,
@@ -1224,7 +1222,7 @@ final class LocalSwiftTests: XCTestCase {
1224
1222
}
1225
1223
1226
1224
func testDocumentSymbolHighlight( ) {
1227
- let url = URL ( fileURLWithPath: " /a.swift " )
1225
+ let url = URL ( fileURLWithPath: " / \( #function ) / a.swift" )
1228
1226
let uri = DocumentURI ( url)
1229
1227
1230
1228
sk. send ( DidOpenTextDocumentNotification ( textDocument: TextDocumentItem (
0 commit comments