Skip to content

Commit 9f1b6b8

Browse files
committed
changing public methods under Tests to package to resolve swift-format lint checking them for documentation
1 parent cc65095 commit 9f1b6b8

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

Tests/TracingTests/DynamicTracepointTracerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ extension DynamicTracepointTestTracer {
229229
private let startTimestampNanosSinceEpoch: UInt64
230230
private(set) var endTimestampNanosSinceEpoch: UInt64?
231231

232-
public var operationName: String
232+
package var operationName: String
233233
private(set) var context: ServiceContext
234234
private(set) var isRecording: Bool = false
235235

Tests/TracingTests/SpanTests.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ extension SpanAttribute {
300300
}
301301

302302
extension SpanAttributes {
303-
public var sampleHttp: HTTPAttributes {
303+
package var sampleHttp: HTTPAttributes {
304304
get {
305305
.init(attributes: self)
306306
}
@@ -311,35 +311,35 @@ extension SpanAttributes {
311311
}
312312

313313
@dynamicMemberLookup
314-
public struct HTTPAttributes: SpanAttributeNamespace {
315-
public var attributes: SpanAttributes
316-
public init(attributes: SpanAttributes) {
314+
package struct HTTPAttributes: SpanAttributeNamespace {
315+
package var attributes: SpanAttributes
316+
package init(attributes: SpanAttributes) {
317317
self.attributes = attributes
318318
}
319319

320-
public struct NestedSpanAttributes: NestedSpanAttributesProtocol {
321-
public init() {}
320+
package struct NestedSpanAttributes: NestedSpanAttributesProtocol {
321+
package init() {}
322322

323-
public var statusCode: Key<Int> {
323+
package var statusCode: Key<Int> {
324324
"http.status_code"
325325
}
326326

327-
public var codesArray: Key<[Int]> {
327+
package var codesArray: Key<[Int]> {
328328
"http.codes_array"
329329
}
330330

331-
public var customType: Key<CustomAttributeValue> {
331+
package var customType: Key<CustomAttributeValue> {
332332
"http.custom_value"
333333
}
334334
}
335335
}
336336

337-
public struct CustomAttributeValue: Equatable, Sendable, CustomStringConvertible, SpanAttributeConvertible {
338-
public func toSpanAttribute() -> SpanAttribute {
337+
package struct CustomAttributeValue: Equatable, Sendable, CustomStringConvertible, SpanAttributeConvertible {
338+
package func toSpanAttribute() -> SpanAttribute {
339339
.stringConvertible(self)
340340
}
341341

342-
public var description: String {
342+
package var description: String {
343343
"CustomAttributeValue()"
344344
}
345345
}

Tests/TracingTests/TestTracer.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ final class TestTracer: LegacyTracer {
4343
return span
4444
}
4545

46-
public func forceFlush() {}
46+
package func forceFlush() {}
4747

4848
func extract<Carrier, Extract>(_ carrier: Carrier, into context: inout ServiceContext, using extractor: Extract)
4949
where
@@ -122,8 +122,8 @@ final class TestSpan: Span {
122122

123123
private var status: SpanStatus?
124124

125-
public let startTimestampNanosSinceEpoch: UInt64
126-
public private(set) var endTimestampNanosSinceEpoch: UInt64?
125+
package let startTimestampNanosSinceEpoch: UInt64
126+
package private(set) var endTimestampNanosSinceEpoch: UInt64?
127127

128128
private(set) var recordedErrors: [(Error, SpanAttributes)] = []
129129

Tests/TracingTests/TracedLockTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private final class TracedLockPrintlnTracer: LegacyTracer {
7474
)
7575
}
7676

77-
public func forceFlush() {}
77+
package func forceFlush() {}
7878

7979
func inject<Carrier, Inject>(
8080
_ context: ServiceContext,

0 commit comments

Comments
 (0)