Skip to content

Commit 701b7d6

Browse files
authored
Move the test helpers to package visibility. (#1817)
The target isn't exposed outside the package and isn't intended to be so switch over to `package` visibility since the min Swift version supports it.
1 parent 37efaf6 commit 701b7d6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/SwiftProtobufTestHelpers/Descriptor+TestHelpers.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,33 @@
1111
import SwiftProtobuf
1212

1313
extension Google_Protobuf_FileDescriptorProto {
14-
public init(name: String, dependencies: [String] = [], publicDependencies: [Int32] = [], package: String = "") {
14+
package init(name: String, dependencies: [String] = [], publicDependencies: [Int32] = [], package: String = "") {
1515
for idx in publicDependencies { precondition(Int(idx) <= dependencies.count) }
1616
self.init()
1717
self.name = name
1818
self.dependency = dependencies
1919
self.publicDependency = publicDependencies
2020
self.package = package
2121
}
22-
public init(textFormatStrings: [String]) throws {
22+
package init(textFormatStrings: [String]) throws {
2323
let s = textFormatStrings.joined(separator: "\n") + "\n"
2424
try self.init(textFormatString: s)
2525
}
2626
}
2727

2828
extension Google_Protobuf_FileDescriptorSet {
29-
public init(files: [Google_Protobuf_FileDescriptorProto]) {
29+
package init(files: [Google_Protobuf_FileDescriptorProto]) {
3030
self.init()
3131
self.file = files
3232
}
33-
public init(file: Google_Protobuf_FileDescriptorProto) {
33+
package init(file: Google_Protobuf_FileDescriptorProto) {
3434
self.init()
3535
self.file = [file]
3636
}
3737
}
3838

3939
extension Google_Protobuf_EnumValueDescriptorProto {
40-
public init(name: String, number: Int32) {
40+
package init(name: String, number: Int32) {
4141
self.init()
4242
self.name = name
4343
self.number = number

0 commit comments

Comments
 (0)