Skip to content

Commit 7f0016f

Browse files
authored
Remove experimental status for evaluate() and add metadata (#1097)
Remove experimental status for ConditionTrait.evaluate() and add metadata ### Motivation: Now that the proposal has been accepted, the experimental tag can be removed. ### Modifications: * Removed the `@_spi(Experimental)` attribute from `ConditionTrait.evaluate()` * Added metadata to the doc comment marking it as part of Swift 6.2 ### 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 6023a5f commit 7f0016f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Sources/Testing/Traits/ConditionTrait.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ public struct ConditionTrait: TestTrait, SuiteTrait {
6969
///
7070
/// The evaluation is performed each time this function is called, and is not
7171
/// cached.
72-
@_spi(Experimental)
72+
///
73+
/// @Metadata {
74+
/// @Available(Swift, introduced: 6.2)
75+
/// }
7376
public func evaluate() async throws -> Bool {
7477
switch kind {
7578
case let .conditional(condition):

Tests/TestingTests/Traits/ConditionTraitTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
//
1010

11-
@testable @_spi(Experimental) import Testing
11+
@testable import Testing
1212

1313
@Suite("Condition Trait Tests", .tags(.traitRelated))
1414
struct ConditionTraitTests {

0 commit comments

Comments
 (0)