Skip to content

Update links for repositories moved to the swiftlang org on GitHub #573

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 17 commits into from
Closed
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ 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)
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.

Expand Down
4 changes: 2 additions & 2 deletions Documentation/StyleGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions Documentation/Vision.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion Sources/Testing/Events/Clock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Sources/Testing/Events/TimeValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private func _callBinaryOperator<T, U, R>(
// 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, {
Expand Down
8 changes: 4 additions & 4 deletions Sources/Testing/Parameterization/TypeInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,27 +184,27 @@ 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
/// is an imported type.
///
/// - 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
Expand Down
4 changes: 2 additions & 2 deletions Sources/Testing/SourceAttribution/Backtrace.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Sources/Testing/Testing.docc/BugIdentifiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | <!-- SEE ALSO: rdar://104582015 -->
<!--
Expand Down
4 changes: 2 additions & 2 deletions Sources/Testing/Traits/Comment+Macro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extension Trait where Self == Comment {
}

/// Construct a comment related to a test from a single-line
/// [Markup](https://github.com/apple/swift/blob/main/docs/DocumentationComments.md)
/// [Markup](https://github.com/swiftlang/swift/blob/main/docs/DocumentationComments.md)
/// comment near it.
///
/// - Parameters:
Expand All @@ -53,7 +53,7 @@ extension Trait where Self == Comment {
}

/// Construct a comment related to a test from a
/// [Markup](https://github.com/apple/swift/blob/main/docs/DocumentationComments.md)
/// [Markup](https://github.com/swiftlang/swift/blob/main/docs/DocumentationComments.md)
/// block comment near it.
///
/// - Parameters:
Expand Down
4 changes: 2 additions & 2 deletions Sources/Testing/Traits/Comment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ public struct Comment: RawRepresentable, Sendable {
/// starting with `/*` and ending with `*/`.
case block

/// This comment came from a single-line [Markup](https://github.com/apple/swift/blob/main/docs/DocumentationComments.md)
/// This comment came from a single-line [Markup](https://github.com/swiftlang/swift/blob/main/docs/DocumentationComments.md)
/// comment in the test's source code starting with `///`.
case documentationLine

/// This comment came from a block [Markup](https://github.com/apple/swift/blob/main/docs/DocumentationComments.md)
/// This comment came from a block [Markup](https://github.com/swiftlang/swift/blob/main/docs/DocumentationComments.md)
/// comment in the test's source code starting with `/**` and ending with
/// `*/`.
case documentationBlock
Expand Down
4 changes: 2 additions & 2 deletions Sources/TestingMacros/Support/CRC32.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// The precomputed CRC-32 lookup table.
///
/// This table is used by the ``crc32(_:)`` function below. It is borrowed from
/// the [Swift standard library](https://github.com/apple/swift/blob/main/stdlib/public/Backtracing/Elf.swift).
/// the [Swift standard library](https://github.com/swiftlang/swift/blob/main/stdlib/public/Backtracing/Elf.swift).
private let _crc32Table: [UInt32] = [
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
Expand Down Expand Up @@ -66,7 +66,7 @@ private let _crc32Table: [UInt32] = [
/// - Returns: The CRC-32 code computed for `bytes`.
///
/// A starting value of `0` is assumed. This function is adapted from the
/// [Swift standard library](https://github.com/apple/swift/blob/main/stdlib/public/Backtracing/Elf.swift).
/// [Swift standard library](https://github.com/swiftlang/swift/blob/main/stdlib/public/Backtracing/Elf.swift).
func crc32(_ bytes: some Sequence<UInt8>) -> UInt32 {
~bytes.reduce(~0) { crcValue, byte in
_crc32Table[Int(UInt8(truncatingIfNeeded: crcValue) ^ byte)] ^ (crcValue >> 8)
Expand Down
2 changes: 1 addition & 1 deletion Sources/TestingMacros/Support/DiagnosticMessage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ struct DiagnosticMessage: SwiftDiagnostics.DiagnosticMessage {
/// - Returns: The name of the macro as understood by a developer, such as
/// `"'@Test'"`. Include single quotes.
private static func _macroName(_ attribute: AttributeSyntax) -> String {
// SEE: https://github.com/apple/swift/blob/main/docs/Diagnostics.md?plain=1#L44
// SEE: https://github.com/swiftlang/swift/blob/main/docs/Diagnostics.md?plain=1#L44
"'\(attribute.attributeNameText)'"
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/_TestingInternals/Discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ struct SWTTypeMetadataRecord {

// This environment does not have a dynamic linker/loader. Therefore, there is
// only one image (this one) with Swift code in it.
// SEE: https://github.com/apple/swift/tree/main/stdlib/public/runtime/ImageInspectionStatic.cpp
// SEE: https://github.com/swiftlang/swift/tree/main/stdlib/public/runtime/ImageInspectionStatic.cpp

extern "C" const char sectionBegin __asm("section$start$__TEXT$__swift5_types");
extern "C" const char sectionEnd __asm("section$end$__TEXT$__swift5_types");
Expand Down
2 changes: 1 addition & 1 deletion Sources/_TestingInternals/include/Defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
///
/// - Bug: The value provided to the compiler (`_SWT_TESTING_LIBRARY_VERSION`)
/// is not visible in Swift, so this second macro is needed.
/// ((#43521)[https://github.com/apple/swift/issues/43521])
/// ((#43521)[https://github.com/swiftlang/swift/issues/43521])
#if defined(_SWT_TESTING_LIBRARY_VERSION)
#define SWT_TESTING_LIBRARY_VERSION _SWT_TESTING_LIBRARY_VERSION
#else
Expand Down