diff --git a/Dockerfile b/Dockerfile index 20bccd1fe..d18db2add 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ FROM swiftlang/swift:nightly-main-jammy # Set up the current build user in the same way done in the Swift.org CI system: -# https://github.com/apple/swift-docker/blob/main/swift-ci/master/ubuntu/22.04/Dockerfile +# https://github.com/swiftlang/swift-docker/blob/main/swift-ci/master/ubuntu/22.04/Dockerfile RUN groupadd -g 998 build-user && \ useradd -m -r -u 998 -g build-user build-user diff --git a/Documentation/README.md b/Documentation/README.md index f7f259c53..e7bd5ecbe 100644 --- a/Documentation/README.md +++ b/Documentation/README.md @@ -17,7 +17,7 @@ The detailed documentation for Swift Testing can be found on the There, you can delve into comprehensive guides, tutorials, and API references to make the most out of this package. -This documentation is generated using [DocC](https://github.com/apple/swift-docc) +This documentation is generated using [DocC](https://github.com/swiftlang/swift-docc) and is derived from symbol documentation in this project's source code as well as supplemental content located in the [`Sources/Testing/Testing.docc/`](https://github.com/apple/swift-testing/tree/main/Sources/Testing/Testing.docc) @@ -25,7 +25,7 @@ directory. ## Vision document -The [Vision document](https://github.com/apple/swift-evolution/blob/main/visions/swift-testing.md) +The [Vision document](https://github.com/swiftlang/swift-evolution/blob/main/visions/swift-testing.md) for Swift Testing offers a comprehensive discussion of the project's design principles and goals. diff --git a/Documentation/StyleGuide.md b/Documentation/StyleGuide.md index d169c8563..8002463f1 100644 --- a/Documentation/StyleGuide.md +++ b/Documentation/StyleGuide.md @@ -140,12 +140,12 @@ Begin topic group headings inside types with a noun or noun phrase. The macro target of this package produces a number of different compile-time diagnostics. These diagnostics should be written according to the Swift style -guide for compiler diagnostics [here](https://github.com/apple/swift/blob/main/docs/Diagnostics.md). +guide for compiler diagnostics [here](https://github.com/swiftlang/swift/blob/main/docs/Diagnostics.md). ### Documentation Documentation for the testing library should follow the -[Swift Book style guide](https://github.com/apple/swift-book/blob/main/Style.md) +[Swift Book style guide](https://github.com/swiftlang/swift-book/blob/main/Style.md) and [Apple Style Guide](https://support.apple.com/guide/applestyleguide/) as contextually appropriate. diff --git a/Documentation/Vision.md b/Documentation/Vision.md index 29632b9dc..2c97174ad 100644 --- a/Documentation/Vision.md +++ b/Documentation/Vision.md @@ -7,7 +7,7 @@ automated testing to identify software defects. Better APIs and tools for testing can greatly improve a platform’s quality. Below, we propose a new API direction for testing in Swift. -Click [here](https://github.com/apple/swift-evolution/blob/main/visions/swift-testing.md) +Click [here](https://github.com/swiftlang/swift-evolution/blob/main/visions/swift-testing.md) to view the complete vision document for Swift Testing, which has been accepted by the Swift Language Steering Group and is now hosted in the -[swift-evolution](https://github.com/apple/swift-evolution) repository. +[swift-evolution](https://github.com/swiftlang/swift-evolution) repository. diff --git a/Package.swift b/Package.swift index 78d364d5c..048fac24b 100644 --- a/Package.swift +++ b/Package.swift @@ -140,7 +140,7 @@ extension Array where Element == PackageDescription.SwiftSetting { /// /// These leverage a pseudo-experimental feature in the Swift compiler for /// setting availability definitions, which was added in - /// [apple/swift#65218](https://github.com/apple/swift/pull/65218). + /// [swiftlang/swift#65218](https://github.com/swiftlang/swift/pull/65218). private static var availabilityMacroSettings: Self { [ .enableExperimentalFeature("AvailabilityMacro=_mangledTypeNameAPI:macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0"), diff --git a/Sources/Testing/Events/Clock.swift b/Sources/Testing/Events/Clock.swift index cf8a99b69..794f4df8b 100644 --- a/Sources/Testing/Events/Clock.swift +++ b/Sources/Testing/Events/Clock.swift @@ -27,7 +27,7 @@ extension Test { // that of the Swift Clock API, so we don't use `SuspendingClock` // directly on them and instead derive a value from platform-specific // API. SuspendingClock corresponds to CLOCK_UPTIME_RAW on Darwin. - // SEE: https://github.com/apple/swift/blob/main/stdlib/public/Concurrency/Clock.cpp + // SEE: https://github.com/swiftlang/swift/blob/main/stdlib/public/Concurrency/Clock.cpp var uptime = timespec() _ = clock_gettime(CLOCK_UPTIME_RAW, &uptime) return TimeValue(uptime) diff --git a/Sources/Testing/Events/TimeValue.swift b/Sources/Testing/Events/TimeValue.swift index c5cb52ce3..08332ba70 100644 --- a/Sources/Testing/Events/TimeValue.swift +++ b/Sources/Testing/Events/TimeValue.swift @@ -76,7 +76,7 @@ extension TimeValue: Codable {} extension TimeValue: CustomStringConvertible { var description: String { #if os(WASI) - // BUG: https://github.com/apple/swift/issues/72398 + // BUG: https://github.com/swiftlang/swift/issues/72398 return String(describing: Duration(self)) #else let (secondsFromAttoseconds, attosecondsRemaining) = attoseconds.quotientAndRemainder(dividingBy: 1_000_000_000_000_000_000) diff --git a/Sources/Testing/Expectations/ExpectationChecking+Macro.swift b/Sources/Testing/Expectations/ExpectationChecking+Macro.swift index d4d6fcd3b..4e3f95722 100644 --- a/Sources/Testing/Expectations/ExpectationChecking+Macro.swift +++ b/Sources/Testing/Expectations/ExpectationChecking+Macro.swift @@ -137,7 +137,7 @@ private func _callBinaryOperator( // nonescaping closure, but our use cases are safe (e.g. `true && false`) and // we cannot force one function or the other to be escaping. Use // withoutActuallyEscaping() to tell the compiler that what we're doing is - // okay. SEE: https://github.com/apple/swift-evolution/blob/main/proposals/0176-enforce-exclusive-access-to-memory.md#restrictions-on-recursive-uses-of-non-escaping-closures + // okay. SEE: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0176-enforce-exclusive-access-to-memory.md#restrictions-on-recursive-uses-of-non-escaping-closures var rhsValue: U? let result: R = withoutActuallyEscaping(rhs) { rhs in op(lhs, { diff --git a/Sources/Testing/Parameterization/TypeInfo.swift b/Sources/Testing/Parameterization/TypeInfo.swift index 887323a61..671674531 100644 --- a/Sources/Testing/Parameterization/TypeInfo.swift +++ b/Sources/Testing/Parameterization/TypeInfo.swift @@ -184,19 +184,19 @@ extension TypeInfo { extension TypeInfo { /// Whether or not the described type is a Swift `enum` type. /// - /// Per the [Swift mangling ABI](https://github.com/apple/swift/blob/main/docs/ABI/Mangling.rst), + /// Per the [Swift mangling ABI](https://github.com/swiftlang/swift/blob/main/docs/ABI/Mangling.rst), /// enumeration types are mangled as `"O"`. /// /// - Bug: We use the internal Swift standard library function /// `_mangledTypeName()` to derive this information. We should use supported - /// API instead. ([swift-#69147](https://github.com/apple/swift/issues/69147)) + /// API instead. ([swift-#69147](https://github.com/swiftlang/swift/issues/69147)) var isSwiftEnumeration: Bool { mangledName?.last == "O" } /// Whether or not the described type is imported from C, C++, or Objective-C. /// - /// Per the [Swift mangling ABI](https://github.com/apple/swift/blob/main/docs/ABI/Mangling.rst), + /// Per the [Swift mangling ABI](https://github.com/swiftlang/swift/blob/main/docs/ABI/Mangling.rst), /// types imported from C-family languages are placed in a single flat `__C` /// module. That module has a standardized mangling of `"So"`. The presence of /// those characters at the start of a type's mangled name indicates that it @@ -204,7 +204,7 @@ extension TypeInfo { /// /// - Bug: We use the internal Swift standard library function /// `_mangledTypeName()` to derive this information. We should use supported - /// API instead. ([swift-#69146](https://github.com/apple/swift/issues/69146)) + /// API instead. ([swift-#69146](https://github.com/swiftlang/swift/issues/69146)) var isImportedFromC: Bool { guard let mangledName, mangledName.count > 2 else { return false diff --git a/Sources/Testing/SourceAttribution/Backtrace.swift b/Sources/Testing/SourceAttribution/Backtrace.swift index c8d494054..e625bcfce 100644 --- a/Sources/Testing/SourceAttribution/Backtrace.swift +++ b/Sources/Testing/SourceAttribution/Backtrace.swift @@ -75,7 +75,7 @@ public struct Backtrace: Sendable { initializedCount = Int(RtlCaptureStackBackTrace(0, ULONG(addresses.count), addresses.baseAddress!, nil)) #elseif os(WASI) // SEE: https://github.com/WebAssembly/WASI/issues/159 - // SEE: https://github.com/apple/swift/pull/31693 + // SEE: https://github.com/swiftlang/swift/pull/31693 initializedCount = 0 #else #warning("Platform-specific implementation missing: backtraces unavailable") @@ -122,7 +122,7 @@ extension Backtrace { /// - Bug: On Windows, the weak reference to this object triggers a /// crash. To avoid said crash, we'll keep a strong reference to the /// object (abandoning memory until the process exits.) - /// ([swift-#62985](https://github.com/apple/swift/issues/62985)) + /// ([swift-#62985](https://github.com/swiftlang/swift/issues/62985)) #if os(Windows) var errorObject: (any AnyObject & Sendable)? #else diff --git a/Sources/Testing/Testing.docc/BugIdentifiers.md b/Sources/Testing/Testing.docc/BugIdentifiers.md index 91d5b83e9..ac004fafa 100644 --- a/Sources/Testing/Testing.docc/BugIdentifiers.md +++ b/Sources/Testing/Testing.docc/BugIdentifiers.md @@ -46,7 +46,7 @@ convenience, you can also directly pass an integer as a bug's identifier using | `.bug(id: 12345)` | None | | `.bug(id: "12345")` | None | | `.bug("https://www.example.com?id=12345", id: "12345")` | None | -| `.bug("https://github.com/apple/swift/pull/12345")` | [GitHub Issues for the Swift project](https://github.com/apple/swift/issues) | +| `.bug("https://github.com/swiftlang/swift/pull/12345")` | [GitHub Issues for the Swift project](https://github.com/swiftlang/swift/issues) | | `.bug("https://bugs.webkit.org/show_bug.cgi?id=12345")` | [WebKit Bugzilla](https://bugs.webkit.org/) | | `.bug(id: "FB12345")` | Apple Feedback Assistant |