From b34276d09882ac307ea4109eec4657e5a95b3cdc Mon Sep 17 00:00:00 2001 From: David Catmull Date: Wed, 30 Apr 2025 14:04:04 -0600 Subject: [PATCH] Remove experimental status for evaluate() and add metadata --- Sources/Testing/Traits/ConditionTrait.swift | 5 ++++- Tests/TestingTests/Traits/ConditionTraitTests.swift | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Sources/Testing/Traits/ConditionTrait.swift b/Sources/Testing/Traits/ConditionTrait.swift index a3b98c99d..eb3d1bd11 100644 --- a/Sources/Testing/Traits/ConditionTrait.swift +++ b/Sources/Testing/Traits/ConditionTrait.swift @@ -69,7 +69,10 @@ public struct ConditionTrait: TestTrait, SuiteTrait { /// /// The evaluation is performed each time this function is called, and is not /// cached. - @_spi(Experimental) + /// + /// @Metadata { + /// @Available(Swift, introduced: 6.2) + /// } public func evaluate() async throws -> Bool { switch kind { case let .conditional(condition): diff --git a/Tests/TestingTests/Traits/ConditionTraitTests.swift b/Tests/TestingTests/Traits/ConditionTraitTests.swift index 6b5311202..d957e425b 100644 --- a/Tests/TestingTests/Traits/ConditionTraitTests.swift +++ b/Tests/TestingTests/Traits/ConditionTraitTests.swift @@ -8,7 +8,7 @@ // See https://swift.org/CONTRIBUTORS.txt for Swift project authors // -@testable @_spi(Experimental) import Testing +@testable import Testing @Suite("Condition Trait Tests", .tags(.traitRelated)) struct ConditionTraitTests {