Skip to content
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 }
}