You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/SwiftSyntaxMacrosTestSupport/Assertions.swift
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,7 @@ public func assertMacroExpansion(
145
145
)
146
146
}
147
147
148
+
#if canImport(Testing)
148
149
/// Expect that expanding the given macros in the original source produces
149
150
/// the given expanded source code.
150
151
/// 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(
0 commit comments