Skip to content

Commit ffedee9

Browse files
committed
Don't make emitted classes private
1 parent 1a3f430 commit ffedee9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/TestingMacros/SuiteDeclarationMacro.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public struct SuiteDeclarationMacro: MemberMacro, PeerMacro, Sendable {
165165
result.append(
166166
"""
167167
@available(*, deprecated, message: "This type is an implementation detail of the testing library. Do not use it directly.")
168-
private final class \(className): Testing.__TestContentRecordContainer {
168+
final class \(className): Testing.__TestContentRecordContainer {
169169
override nonisolated class var __testContentRecord: Testing.__TestContentRecord {
170170
\(testContentRecordName)
171171
}

Sources/TestingMacros/TestDeclarationMacro.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ public struct TestDeclarationMacro: PeerMacro, Sendable {
501501
result.append(
502502
"""
503503
@available(*, deprecated, message: "This type is an implementation detail of the testing library. Do not use it directly.")
504-
private final class \(className): Testing.__TestContentRecordContainer {
504+
final class \(className): Testing.__TestContentRecordContainer {
505505
override nonisolated class var __testContentRecord: Testing.__TestContentRecord {
506506
\(testContentRecordName)
507507
}

0 commit comments

Comments
 (0)