@@ -61,7 +61,7 @@ public func withSnapshotTesting<R>(
6161public struct SnapshotTestingConfiguration : Sendable {
6262 @_spi ( Internals)
6363 @TaskLocal public static var current : Self ?
64-
64+
6565 /// The diff tool use to print helpful test failure messages.
6666 ///
6767 /// See ``DiffTool-swift.struct`` for more information.
@@ -79,15 +79,15 @@ public struct SnapshotTestingConfiguration: Sendable {
7979 self . diffTool = diffTool
8080 self . record = record
8181 }
82-
82+
8383 /// The record mode of the snapshot test.
8484 ///
8585 /// There are 4 primary strategies for recording: ``Record-swift.struct/all``,
8686 /// ``Record-swift.struct/missing``, ``Record-swift.struct/never`` and
8787 /// ``Record-swift.struct/failed``
8888 public struct Record : Equatable , Sendable {
8989 private let storage : Storage
90-
90+
9191 public init ? ( rawValue: String ) {
9292 switch rawValue {
9393 case " all " :
@@ -114,7 +114,7 @@ public struct SnapshotTestingConfiguration: Sendable {
114114 /// Records only the snapshots that are missing from disk.
115115 public static let missing = Self ( storage: . missing)
116116
117- /// Does not record any snapshots. If a snapshot is missing a test failure will be raised. This
117+ /// Does not record any snapshots. If a snapshot is missing a test failure will be raised. This
118118 /// option is appropriate when running tests on CI so that re-tries of tests do not
119119 /// surprisingly pass after snapshots are unexpectedly generated.
120120 public static let never = Self ( storage: . never)
@@ -130,14 +130,14 @@ public struct SnapshotTestingConfiguration: Sendable {
130130 case never
131131 }
132132 }
133-
133+
134134 /// Describes the diff command used to diff two files on disk.
135135 ///
136136 /// This type can be created with a closure that takes two arguments: the first argument is
137137 /// is a file path to the currently recorded snapshot on disk, and the second argument is the
138138 /// file path to a _failed_ snapshot that was recorded to a temporary location on disk. You can
139139 /// use these two file paths to construct a command that can be used to compare the two files.
140- ///
140+ ///
141141 /// For example, to use ImageMagick's `compare` tool and pipe the result into Preview.app, you
142142 /// could create the following `DiffTool`:
143143 ///
@@ -193,22 +193,22 @@ public struct SnapshotTestingConfiguration: Sendable {
193193}
194194
195195@available (
196- iOS,
196+ iOS,
197197 deprecated: 9999 ,
198198 message: " Use '.all' instead of 'true', and '.missing' instead of 'false'. "
199199)
200200@available (
201- macOS,
201+ macOS,
202202 deprecated: 9999 ,
203203 message: " Use '.all' instead of 'true', and '.missing' instead of 'false'. "
204204)
205205@available (
206- tvOS,
206+ tvOS,
207207 deprecated: 9999 ,
208208 message: " Use '.all' instead of 'true', and '.missing' instead of 'false'. "
209209)
210210@available (
211- watchOS,
211+ watchOS,
212212 deprecated: 9999 ,
213213 message: " Use '.all' instead of 'true', and '.missing' instead of 'false'. "
214214)
0 commit comments