Skip to content

Fix redundant access-level modifiers. #218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/XCTest/Public/XCTestCase+Performance.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public struct XCTPerformanceMetric : RawRepresentable, Equatable, Hashable {

public extension XCTPerformanceMetric {
/// Records wall clock time in seconds between `startMeasuring`/`stopMeasuring`.
public static let wallClockTime = XCTPerformanceMetric(rawValue: WallClockTimeMetric.name)
static let wallClockTime = XCTPerformanceMetric(rawValue: WallClockTimeMetric.name)
}

/// The following methods are called from within a test method to carry out
Expand Down
4 changes: 2 additions & 2 deletions Sources/XCTest/Public/XCTestErrors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public struct XCTestError : _BridgedStoredNSError {
public extension XCTestError {
/// Indicates that one or more expectations failed to be fulfilled in time
/// during a call to `waitForExpectations(timeout:handler:)`
public static var timeoutWhileWaiting: XCTestError.Code { return .timeoutWhileWaiting }
static var timeoutWhileWaiting: XCTestError.Code { return .timeoutWhileWaiting }

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