Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Sources/ToolsProtocolsTestSupport/Assertions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//

#if canImport(XCTest)
package import XCTest

/// Same as `XCTAssertNoThrow` but executes the trailing closure.
Expand Down Expand Up @@ -181,3 +182,4 @@ package nonisolated func fulfillmentOfOrThrow(
throw ExpectationNotFulfilledError(expectations: expectations)
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/ToolsProtocolsTestSupport/CheckCoding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//

#if canImport(XCTest)
import Foundation
import XCTest

Expand Down Expand Up @@ -112,3 +113,4 @@ package func checkCoding<T: Codable>(

body(decodedValue)
}
#endif
2 changes: 2 additions & 0 deletions Sources/ToolsProtocolsTestSupport/PerfTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//

#if canImport(XCTest)
public import XCTest

/// Base class for a performance test case in SourceKit-LSP.
Expand Down Expand Up @@ -52,3 +53,4 @@ open class PerfTestCase: XCTestCase {
#endif

}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//

#if canImport(XCTest)
import SKLogging
@_spi(SourceKitLSP) import ToolsProtocolsSwiftExtensions
import XCTest
Expand All @@ -35,3 +36,4 @@ package func repeatUntilExpectedResult(
}
XCTFail("Failed to get expected result", file: file, line: line)
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//

#if canImport(XCTest)
public import LanguageServerProtocol
package import LanguageServerProtocolTransport
@_spi(SourceKitLSP) import ToolsProtocolsSwiftExtensions
Expand Down Expand Up @@ -233,3 +234,4 @@ package struct EchoNotification: NotificationType {
self.string = string
}
}
#endif
Loading