Skip to content

[SE-0025] Adapt accessibility for fileprivate #124

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

Closed
wants to merge 1 commit into from
Closed
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/Private/PerformanceMeter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public final class PerformanceMeter {
return state == .measurementFinished || state == .measurementAborted
}

private enum State {
fileprivate enum State {
case iterationUnstarted
case iterationStarted
case iterationFinished
Expand Down
2 changes: 1 addition & 1 deletion Sources/XCTest/Private/PrintObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ internal class PrintObserver: XCTestObservation {
return formatter
}()

private func printAndFlush(_ message: String) {
fileprivate func printAndFlush(_ message: String) {
print(message)
fflush(stdout)
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/XCTest/Private/TestFiltering.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ internal struct TestFiltering {
}

/// A selected test can be a single test case, or an entire class of test cases
private struct SelectedTest {
fileprivate struct SelectedTest {
let testCaseClassName: String
let testCaseMethodName: String?
}

private extension SelectedTest {
fileprivate extension SelectedTest {
init?(selectedTestName: String) {
let components = selectedTestName.characters.split(separator: "/").map(String.init)
switch components.count {
Expand Down
2 changes: 1 addition & 1 deletion Sources/XCTest/Private/WallClockTimeMetric.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ internal final class WallClockTimeMetric: PerformanceMetric {
}


private extension Collection where Index: IntegerLiteralConvertible, Iterator.Element == WallClockTimeMetric.Measurement {
fileprivate extension Collection where Index: IntegerLiteralConvertible, Iterator.Element == WallClockTimeMetric.Measurement {
var average: WallClockTimeMetric.Measurement {
return self.reduce(0, combine: +) / Double(count.toIntMax())
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/XCTest/Public/XCTAssert.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// XCTAssert.swift
//

private enum _XCTAssertion {
fileprivate enum _XCTAssertion {
case equal
case equalWithAccuracy
case greaterThan
Expand Down Expand Up @@ -46,7 +46,7 @@ private enum _XCTAssertion {
}
}

private enum _XCTAssertionResult {
fileprivate enum _XCTAssertionResult {
case success
case expectedFailure(String?)
case unexpectedFailure(ErrorProtocol)
Expand Down
2 changes: 1 addition & 1 deletion Sources/XCTest/Public/XCTestObservationCenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public class XCTestObservationCenter {
}
}

private extension XCTestObservation {
fileprivate extension XCTestObservation {
var wrapper: ObjectWrapper<XCTestObservation> {
return ObjectWrapper(object: self, objectIdentifier: ObjectIdentifier(self))
}
Expand Down