Skip to content

[SR-1901] Remove workarounds for private symbols #174

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
Sep 27, 2016
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
7 changes: 1 addition & 6 deletions Sources/XCTest/Public/XCAbstractTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ open class XCTest {

/// The test run object that executed the test, an instance of
/// testRunClass. If the test has not yet been run, this will be nil.
/// - Note: FIXME: This property is meant to be `private(set)`. It is
/// publicly settable for now due to a Swift compiler bug on Linux. To
/// ensure compatibility of tests between swift-corelibs-xctest and Apple
/// XCTest, you should not set this property. See
/// https://bugs.swift.org/browse/SR-1129 for details.
open open(set) var testRun: XCTestRun? = nil
open private(set) var testRun: XCTestRun? = nil

/// The method through which tests are executed. Must be overridden by
/// subclasses.
Expand Down
11 changes: 3 additions & 8 deletions Sources/XCTest/Public/XCTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,17 @@ open class XCTestCase: XCTest {
return _name
}
/// A private setter for the name of this test case.
/// - Note: FIXME: This property should be readonly, but currently has to
/// be publicly settable due to a Swift compiler bug on Linux. To ensure
/// compatibility of tests between swift-corelibs-xctest and Apple XCTest,
/// this property should not be modified. See
/// https://bugs.swift.org/browse/SR-1129 for details.
public var _name: String
private var _name: String

open override var testCaseCount: UInt {
return 1
}

/// The set of expectations made upon this test case.
final internal var _allExpectations = [XCTestExpectation]()
internal var _allExpectations = [XCTestExpectation]()

/// An internal object implementing performance measurements.
final internal var _performanceMeter: PerformanceMeter?
internal var _performanceMeter: PerformanceMeter?

open override var testRunClass: AnyClass? {
return XCTestCaseRun.self
Expand Down
7 changes: 1 addition & 6 deletions Sources/XCTest/Public/XCTestSuite.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ open class XCTestSuite: XCTest {
return _name
}
/// A private setter for the name of this test suite.
/// - Note: FIXME: This property should be readonly, but currently has to
/// be publicly settable due to a Swift compiler bug on Linux. To ensure
/// compatibility of tests between swift-corelibs-xctest and Apple XCTest,
/// this property should not be modified. See
/// https://bugs.swift.org/browse/SR-1129 for details.
public let _name: String
private let _name: String

/// The number of test cases in this suite.
open override var testCaseCount: UInt {
Expand Down