From 1ae31b4b31487aec705ab28a5dc3b7e7a31655d1 Mon Sep 17 00:00:00 2001 From: Brandon Williams <135203+mbrandonw@users.noreply.github.com> Date: Mon, 9 Sep 2024 16:02:44 -0400 Subject: [PATCH] Import only the implementation of Testing. (#32) --- Sources/MacroTesting/AssertMacro.swift | 2 +- Sources/MacroTesting/Internal/RecordIssue.swift | 2 +- Sources/MacroTesting/MacrosTestTrait.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/MacroTesting/AssertMacro.swift b/Sources/MacroTesting/AssertMacro.swift index 604ba6c..a67ddf9 100644 --- a/Sources/MacroTesting/AssertMacro.swift +++ b/Sources/MacroTesting/AssertMacro.swift @@ -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. diff --git a/Sources/MacroTesting/Internal/RecordIssue.swift b/Sources/MacroTesting/Internal/RecordIssue.swift index 01c700d..2b9c36b 100644 --- a/Sources/MacroTesting/Internal/RecordIssue.swift +++ b/Sources/MacroTesting/Internal/RecordIssue.swift @@ -1,7 +1,7 @@ import XCTest #if canImport(Testing) - import Testing +@_implementationOnly import Testing #endif @_spi(Internals) diff --git a/Sources/MacroTesting/MacrosTestTrait.swift b/Sources/MacroTesting/MacrosTestTrait.swift index fad9e28..7d81ec6 100644 --- a/Sources/MacroTesting/MacrosTestTrait.swift +++ b/Sources/MacroTesting/MacrosTestTrait.swift @@ -2,7 +2,7 @@ import SnapshotTesting import SwiftSyntax import SwiftSyntaxMacros - import Testing + @_implementationOnly import Testing @_spi(Experimental) extension Trait where Self == _MacrosTestTrait {