Skip to content

Commit ab70025

Browse files
committed
Renamed XCTSnapshot to XCSnapshotTesting, preserving the original name of the library
1 parent 8e3a292 commit ab70025

File tree

830 files changed

+32
-32
lines changed

Some content is hidden

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

830 files changed

+32
-32
lines changed

Package.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ let package = Package(
1212
],
1313
products: [
1414
.library(
15-
name: "XCTSnapshot",
16-
targets: ["XCTSnapshot"]
15+
name: "XCSnapshotTesting",
16+
targets: ["XCSnapshotTesting"]
1717
),
1818
.library(
1919
name: "SnapshotTesting",
@@ -62,17 +62,17 @@ let package = Package(
6262
),
6363
/* TARGETS */
6464
.target(
65-
name: "XCTSnapshot",
65+
name: "XCSnapshotTesting",
6666
dependencies: ["_SnapshotTesting"]
6767
),
6868
.target(
6969
name: "SnapshotTesting",
70-
dependencies: ["XCTSnapshot"]
70+
dependencies: ["XCSnapshotTesting"]
7171
),
7272
.target(
7373
name: "SnapshotTestingCustomDump",
7474
dependencies: [
75-
"XCTSnapshot",
75+
"XCSnapshotTesting",
7676
.product(name: "CustomDump", package: "swift-custom-dump"),
7777
"_SnapshotTestingCustomDump",
7878
]
@@ -91,7 +91,7 @@ let package = Package(
9191
/* DEPRECATED TESTS */
9292
.testTarget(
9393
name: "_SnapshotTestingTests",
94-
dependencies: ["XCTSnapshot", "SnapshotTesting"],
94+
dependencies: ["XCSnapshotTesting", "SnapshotTesting"],
9595
path: "Tests/Deprecated/SnapshotTestingTests",
9696
exclude: [
9797
"__Fixtures__",
@@ -107,8 +107,8 @@ let package = Package(
107107
),
108108
/* TESTS */
109109
.testTarget(
110-
name: "XCTSnapshotTests",
111-
dependencies: ["XCTSnapshot"],
110+
name: "XCSnapshotTestingTests",
111+
dependencies: ["XCSnapshotTesting"],
112112
exclude: [
113113
"__Fixtures__",
114114
"__Snapshots__",

README.md

Lines changed: 2 additions & 2 deletions

Sources/InlineSnapshotTesting/AssertInline.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import Foundation
2-
@_spi(Internals) import XCTSnapshot
2+
@_spi(Internals) import XCSnapshotTesting
33

44
#if canImport(SwiftSyntax601)
5-
@_spi(Internals) import XCTSnapshot
5+
@_spi(Internals) import XCSnapshotTesting
66
import SwiftParser
77
import SwiftSyntax
88
import SwiftSyntaxBuilder
@@ -47,7 +47,7 @@ public func assertInline<Input: Sendable, Output: BytesRepresentable>(
4747
line: UInt = #line,
4848
column: UInt = #column
4949
) async throws {
50-
let engine = SnapshotInlineEngine<XCTSnapshot.Async<Input, Output>>(
50+
let engine = SnapshotInlineEngine<XCSnapshotTesting.Async<Input, Output>>(
5151
expected: expected,
5252
message: message,
5353
closureDescriptor: closureDescriptor

Sources/InlineSnapshotTesting/Exports.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@_exported import XCTSnapshot
1+
@_exported import XCSnapshotTesting
22

33
#if !os(visionOS)
44
@_exported import _InlineSnapshotTesting

Sources/InlineSnapshotTesting/SnapshotInlineEngine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#if canImport(SwiftSyntax601)
22
import SwiftSyntax
33
import Foundation
4-
@_spi(Internals) import XCTSnapshot
4+
@_spi(Internals) import XCSnapshotTesting
55

66
struct SnapshotInlineEngine<Executor: SnapshotExecutor>: SnapshotEngine where Executor.Output: BytesRepresentable {
77

Sources/InlineSnapshotTesting/SnapshotInlineObservation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@_spi(Internals) import XCTSnapshot
1+
@_spi(Internals) import XCSnapshotTesting
22
import Foundation
33

44
final class SnapshotInlineObservation: @unchecked Sendable {

Sources/InlineSnapshotTesting/SwiftSyntax/SnapshotClosureDescriptor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@_spi(Internals) import XCTSnapshot
1+
@_spi(Internals) import XCSnapshotTesting
22

33
/// A structure that describes the location of an inline snapshot.
44
///
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@_exported import XCTSnapshot
1+
@_exported import XCSnapshotTesting

Sources/SnapshotTesting/TestCompletionNotifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22
import Testing
3-
@_spi(Internals) import XCTSnapshot
3+
@_spi(Internals) import XCSnapshotTesting
44

55
public struct FinalizeSnapshotsSuiteTrait: SuiteTrait {
66

Sources/SnapshotTesting/TestingSystem+SwiftTestingSystem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22
import Testing
3-
@_spi(Internals) import XCTSnapshot
3+
@_spi(Internals) import XCSnapshotTesting
44

55
extension TestingSystem: SwiftTestingSystem {
66

0 commit comments

Comments
 (0)