Skip to content

Commit 9c1a873

Browse files
committed
Add an NB to @_implementationOnly import.
1 parent 1cefdda commit 9c1a873

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/MacroTesting/AssertMacro.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import SwiftSyntaxMacros
1010
import XCTest
1111

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

Sources/MacroTesting/Internal/RecordIssue.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import XCTest
22

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

Sources/MacroTesting/MacrosTestTrait.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import SnapshotTesting
33
import SwiftSyntax
44
import SwiftSyntaxMacros
5+
// NB: We are importing only the implementation of Testing because that framework is not available
6+
// in Xcode UI test targets.
57
@_implementationOnly import Testing
68

79
@_spi(Experimental)

0 commit comments

Comments
 (0)