Skip to content

Commit 16fe5e5

Browse files
committed
Ensure the mock keychain trait is only available on supported platforms
1 parent 4ebc445 commit 16fe5e5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Tests/TestCommon/Traits/MockKeychainTrait.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// See the License for the specific language governing permissions and limitations under the License.
1111
//
1212

13+
#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS) || (swift(>=5.10) && os(visionOS))
1314
import Testing
1415
import Foundation
1516

@@ -42,3 +43,4 @@ extension Test {
4243
extension Trait where Self == MockKeychainTrait {
4344
static var mockKeychain: Self { Self() }
4445
}
46+
#endif

0 commit comments

Comments
 (0)