Skip to content

Commit 775da90

Browse files
authored
Rename TestingInternals to _TestingInternals. (#404)
This module is not meant to be accessible outside of swift-testing, however it may be reachable by clients inadvertently. To minimize the likelihood of that, rename the module so it doesn't show up in documentation or Xcode autocomplete contexts. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 500a043 commit 775da90

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+37
-37
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let package = Package(
4040
.target(
4141
name: "Testing",
4242
dependencies: [
43-
"TestingInternals",
43+
"_TestingInternals",
4444
"TestingMacros",
4545
],
4646
cxxSettings: .packageSettings,
@@ -79,7 +79,7 @@ let package = Package(
7979
// "Support" targets: These contain C family code and are used exclusively
8080
// by other targets above, not directly included in product libraries.
8181
.target(
82-
name: "TestingInternals",
82+
name: "_TestingInternals",
8383
cxxSettings: .packageSettings
8484
),
8585

[email protected]

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let package = Package(
4040
.target(
4141
name: "Testing",
4242
dependencies: [
43-
"TestingInternals",
43+
"_TestingInternals",
4444
"TestingMacros",
4545
],
4646
cxxSettings: .packageSettings,
@@ -79,7 +79,7 @@ let package = Package(
7979
// "Support" targets: These contain C family code and are used exclusively
8080
// by other targets above, not directly included in product libraries.
8181
.target(
82-
name: "TestingInternals",
82+
name: "_TestingInternals",
8383
cxxSettings: .packageSettings
8484
),
8585

Sources/Testing/EntryPoints/EntryPoint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
//
1010

11-
private import TestingInternals
11+
private import _TestingInternals
1212

1313
/// The common implementation of the entry point functions in this file.
1414
///

Sources/Testing/EntryPoints/SwiftPMEntryPoint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
//
1010

11-
private import TestingInternals
11+
private import _TestingInternals
1212

1313
/// The entry point to the testing library used by Swift Package Manager.
1414
///

Sources/Testing/EntryPoints/XCTestScaffold.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010

1111
#if !SWT_NO_XCTEST_SCAFFOLDING && canImport(XCTest)
12-
private import TestingInternals
12+
private import _TestingInternals
1313
public import XCTest
1414

1515
#if SWT_TARGET_OS_APPLE

Sources/Testing/Events/Clock.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
//
1010

11-
private import TestingInternals
11+
private import _TestingInternals
1212

1313
@_spi(Experimental) @_spi(ForToolsIntegrationOnly)
1414
extension Test {

Sources/Testing/Events/TimeValue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// `internal` because `TimeValue.init(_ timespec:)` below is internal and
1212
// references a type (`timespec`) which comes from this import.
13-
internal import TestingInternals
13+
internal import _TestingInternals
1414

1515
/// A container type representing a time value that is suitable for storage,
1616
/// conversion, encoding, and decoding.

Sources/Testing/ExitTests/ExitCondition.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
//
1010

11-
private import TestingInternals
11+
private import _TestingInternals
1212

1313
/// An enumeration describing possible conditions under which an exit test will
1414
/// succeed or fail.

Sources/Testing/ExitTests/ExitTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
//
1010

11-
private import TestingInternals
11+
private import _TestingInternals
1212

1313
#if !SWT_NO_EXIT_TESTS
1414
/// A type describing an exit test.

Sources/Testing/ExitTests/WaitFor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010

1111
#if !SWT_NO_EXIT_TESTS
12-
internal import TestingInternals
12+
internal import _TestingInternals
1313

1414
#if SWT_TARGET_OS_APPLE || os(Linux)
1515
/// Block the calling thread, wait for the target process to exit, and return

0 commit comments

Comments
 (0)