@@ -288,16 +288,11 @@ can be `.checked` (the default) or `.unchecked`, allowing you to control the
288
288
` Sendable ` conformance of the generated mock. In most cases, the default is
289
289
preferred and this argument can be omitted.
290
290
291
- - Default: ` .checked `
292
- - When set to ` .checked ` , the mock's Sendability is inherited from its
293
- underlying implementation and verified by the compiler as usual. No
294
- additonal annotations or Sendable conformance are added.
295
- - Alternatively: ` .unchecked `
296
- - When set to ` .unchecked ` , the generated mock will explicitly conform to
297
- ` @unchecked Sendable ` .
298
- - This is useful when you need your mock to be ` Sendable ` but cannot satisfy
299
- strict compiler checks and know your usage is concurrency-safe.
300
-
291
+ Default: ` .checked `
292
+ - When set to ` .checked ` , the mock's Sendability is inherited from its
293
+ underlying implementation and verified by the compiler as usual. No
294
+ additonal annotations or Sendable conformance are added.
295
+
301
296
``` swift
302
297
@Mocked
303
298
protocol Dependency : Sendable {}
@@ -315,6 +310,12 @@ final class DependencyMock: Dependency {}
315
310
#endif
316
311
```
317
312
313
+ Alternatively: ` .unchecked `
314
+ - When set to ` .unchecked ` , the generated mock will explicitly conform to
315
+ ` @unchecked Sendable ` .
316
+ - This is useful when you need your mock to be ` Sendable ` but cannot satisfy
317
+ strict compiler checks and know your usage is concurrency-safe.
318
+
318
319
``` swift
319
320
@Mocked (sendableConformance: .unchecked )
320
321
protocol Dependency : Sendable {}
0 commit comments