Skip to content

Commit

Permalink
Import only the implementation of Testing. (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw authored Sep 9, 2024
1 parent 78e7d4e commit 1ae31b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/MacroTesting/AssertMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SwiftSyntaxMacros
import XCTest

#if canImport(Testing)
import Testing
@_implementationOnly import Testing
#endif

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

#if canImport(Testing)
import Testing
@_implementationOnly import Testing
#endif

@_spi(Internals)
Expand Down
2 changes: 1 addition & 1 deletion Sources/MacroTesting/MacrosTestTrait.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import SnapshotTesting
import SwiftSyntax
import SwiftSyntaxMacros
import Testing
@_implementationOnly import Testing

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

0 comments on commit 1ae31b4

Please sign in to comment.