Skip to content

Commit ae3d921

Browse files
committed
Fix redundant access-level modifiers to make corelibs-xctest
adapted to swiftlang/swift#18623.
1 parent a055eff commit ae3d921

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/XCTest/Public/XCTestCase+Performance.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public struct XCTPerformanceMetric : RawRepresentable, Equatable, Hashable {
3333

3434
public extension XCTPerformanceMetric {
3535
/// Records wall clock time in seconds between `startMeasuring`/`stopMeasuring`.
36-
public static let wallClockTime = XCTPerformanceMetric(rawValue: WallClockTimeMetric.name)
36+
static let wallClockTime = XCTPerformanceMetric(rawValue: WallClockTimeMetric.name)
3737
}
3838

3939
/// The following methods are called from within a test method to carry out

Sources/XCTest/Public/XCTestErrors.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ public struct XCTestError : _BridgedStoredNSError {
3636
public extension XCTestError {
3737
/// Indicates that one or more expectations failed to be fulfilled in time
3838
/// during a call to `waitForExpectations(timeout:handler:)`
39-
public static var timeoutWhileWaiting: XCTestError.Code { return .timeoutWhileWaiting }
39+
static var timeoutWhileWaiting: XCTestError.Code { return .timeoutWhileWaiting }
4040

4141
/// Indicates that a test assertion failed while waiting for expectations
4242
/// during a call to `waitForExpectations(timeout:handler:)`
4343
/// FIXME: swift-corelibs-xctest does not currently produce this error code.
44-
public static var failureWhileWaiting: XCTestError.Code { return .failureWhileWaiting }
44+
static var failureWhileWaiting: XCTestError.Code { return .failureWhileWaiting }
4545
}

0 commit comments

Comments
 (0)