Skip to content

Commit

Permalink
Remove @_implementationOnly imports. (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw authored Sep 12, 2024
1 parent 9c1a873 commit 1a9dc97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions Sources/MacroTesting/AssertMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ import SwiftSyntaxMacros
import XCTest

#if canImport(Testing)
// NB: We are importing only the implementation of Testing because that framework is not available
// in Xcode UI test targets.
@_implementationOnly import Testing
import Testing
#endif

/// Asserts that a given Swift source string matches an expected string with all macros expanded.
Expand Down
4 changes: 1 addition & 3 deletions Sources/MacroTesting/Internal/RecordIssue.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import XCTest

#if canImport(Testing)
// NB: We are importing only the implementation of Testing because that framework is not available
// in Xcode UI test targets.
@_implementationOnly import Testing
import Testing
#endif

@_spi(Internals)
Expand Down
4 changes: 1 addition & 3 deletions Sources/MacroTesting/MacrosTestTrait.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
import SnapshotTesting
import SwiftSyntax
import SwiftSyntaxMacros
// NB: We are importing only the implementation of Testing because that framework is not available
// in Xcode UI test targets.
@_implementationOnly import Testing
import Testing

@_spi(Experimental)
extension Trait where Self == _MacrosTestTrait {
Expand Down

0 comments on commit 1a9dc97

Please sign in to comment.