Skip to content

Commit 54f919e

Browse files
authored
Declare Xcode 26 availability for IssueHandlingTrait (#1251)
This declares Xcode 26 availability for `IssueHandlingTrait`, which was proposed in [ST-0011: Issue Handling Traits](https://github.com/swiftlang/swift-evolution/blob/main/proposals/testing/0011-issue-handling-traits.md) and included in Swift 6.2 in #1228. This feature first appeared in Xcode 26 Beta 5, as noted[^1] in the [Release Notes](https://developer.apple.com/documentation/xcode-release-notes/xcode-26-release-notes). [^1]: Search for "ST-0011" on that page to find the reference. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent c60f130 commit 54f919e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/Testing/Traits/IssueHandlingTrait.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
///
2828
/// @Metadata {
2929
/// @Available(Swift, introduced: 6.2)
30+
/// @Available(Xcode, introduced: 26.0)
3031
/// }
3132
public struct IssueHandlingTrait: TestTrait, SuiteTrait {
3233
/// A function which handles an issue and returns an optional replacement.
@@ -55,6 +56,7 @@ public struct IssueHandlingTrait: TestTrait, SuiteTrait {
5556
///
5657
/// @Metadata {
5758
/// @Available(Swift, introduced: 6.2)
59+
/// @Available(Xcode, introduced: 26.0)
5860
/// }
5961
public func handleIssue(_ issue: Issue) -> Issue? {
6062
_handler(issue)
@@ -67,6 +69,7 @@ public struct IssueHandlingTrait: TestTrait, SuiteTrait {
6769

6870
/// @Metadata {
6971
/// @Available(Swift, introduced: 6.2)
72+
/// @Available(Xcode, introduced: 26.0)
7073
/// }
7174
extension IssueHandlingTrait: TestScoping {
7275
public func scopeProvider(for test: Test, testCase: Test.Case?) -> Self? {
@@ -181,6 +184,7 @@ extension Trait where Self == IssueHandlingTrait {
181184
///
182185
/// @Metadata {
183186
/// @Available(Swift, introduced: 6.2)
187+
/// @Available(Xcode, introduced: 26.0)
184188
/// }
185189
public static func compactMapIssues(_ transform: @escaping @Sendable (Issue) -> Issue?) -> Self {
186190
Self(handler: transform)
@@ -219,6 +223,7 @@ extension Trait where Self == IssueHandlingTrait {
219223
///
220224
/// @Metadata {
221225
/// @Available(Swift, introduced: 6.2)
226+
/// @Available(Xcode, introduced: 26.0)
222227
/// }
223228
public static func filterIssues(_ isIncluded: @escaping @Sendable (Issue) -> Bool) -> Self {
224229
Self { issue in

0 commit comments

Comments
 (0)