Skip to content

Commit 6287124

Browse files
committed
canImport wrap
1 parent f765a21 commit 6287124

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/SwiftSyntaxMacrosTestSupport/Assertions.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ public func assertMacroExpansion(
145145
)
146146
}
147147

148+
#if canImport(Testing)
148149
/// Expect that expanding the given macros in the original source produces
149150
/// the given expanded source code.
150151
/// This function is the Swift Testing equivalent of ``assertMacroExpansion(_:expandedSource:diagnostics:macroSpecs:applyFixIts:fixedSource:testModuleName:testFileName:indentationWidth:buildConfiguration:file:line:)``
@@ -261,3 +262,4 @@ public func expectMacroExpansion(
261262
column: column
262263
)
263264
}
265+
#endif

0 commit comments

Comments
 (0)