@@ -15,9 +15,9 @@ private import _TestingInternals
15
15
///
16
16
/// Attachments are included in test reports in Xcode or written to disk when
17
17
/// tests are run at the command line. To create an attachment, you need a value
18
- /// of some type that conforms to ``Test/ Attachable``. Initialize an instance of
19
- /// ``Test/ Attachment`` with that value and, optionally, a preferred filename to
20
- /// use when writing to disk.
18
+ /// of some type that conforms to ``Attachable``. Initialize an instance of
19
+ /// ``Attachment`` with that value and, optionally, a preferred filename to use
20
+ /// when writing to disk.
21
21
@_spi ( Experimental)
22
22
public struct Attachment < AttachableValue> : ~ Copyable where AttachableValue: Attachable & ~ Copyable {
23
23
/// Storage for ``attachableValue-7dyjv``.
@@ -89,7 +89,7 @@ extension Attachment where AttachableValue: ~Copyable {
89
89
90
90
@_spi ( Experimental) @_spi ( ForToolsIntegrationOnly)
91
91
extension Attachment where AttachableValue == AnyAttachable {
92
- /// Create a type-erased attachment from an instance of ``Test/ Attachment``.
92
+ /// Create a type-erased attachment from an instance of ``Attachment``.
93
93
///
94
94
/// - Parameters:
95
95
/// - attachment: The attachment to type-erase.
@@ -163,10 +163,10 @@ extension Attachment where AttachableValue: ~Copyable {
163
163
extension Attachment where AttachableValue: AttachableContainer & ~ Copyable {
164
164
/// The value of this attachment.
165
165
///
166
- /// When the attachable value's type conforms to ``Test/ AttachableContainer``,
167
- /// the value of this property equals the container's underlying attachable
168
- /// value. To access the attachable value as an instance of `T` (where `T`
169
- /// conforms to ``Test/ AttachableContainer``), specify the type explicitly:
166
+ /// When the attachable value's type conforms to ``AttachableContainer``, the
167
+ /// value of this property equals the container's underlying attachable value.
168
+ /// To access the attachable value as an instance of `T` (where `T` conforms
169
+ /// to ``AttachableContainer``), specify the type explicitly:
170
170
///
171
171
/// ```swift
172
172
/// let attachableValue = attachment.attachableValue as T
@@ -230,7 +230,7 @@ extension Attachment where AttachableValue: ~Copyable {
230
230
231
231
extension Attachment where AttachableValue: ~ Copyable {
232
232
/// Call a function and pass a buffer representing the value of this
233
- /// instance's ``attachableValue-7dyjv `` property to it.
233
+ /// instance's ``attachableValue-2tnj5 `` property to it.
234
234
///
235
235
/// - Parameters:
236
236
/// - body: A function to call. A temporary buffer containing a data
@@ -243,8 +243,8 @@ extension Attachment where AttachableValue: ~Copyable {
243
243
///
244
244
/// The testing library uses this function when writing an attachment to a
245
245
/// test report or to a file on disk. This function calls the
246
- /// ``Test/ Attachable/withUnsafeBufferPointer(for:_:)`` function on this
247
- /// attachment's ``attachableValue-7dyjv `` property.
246
+ /// ``Attachable/withUnsafeBufferPointer(for:_:)`` function on this
247
+ /// attachment's ``attachableValue-2tnj5 `` property.
248
248
@inlinable public borrowing func withUnsafeBufferPointer< R> ( _ body: ( UnsafeRawBufferPointer ) throws -> R ) throws -> R {
249
249
try attachableValue. withUnsafeBufferPointer ( for: self , body)
250
250
}
@@ -265,8 +265,7 @@ extension Attachment where AttachableValue: ~Copyable {
265
265
/// - Returns: The path to the file that was written.
266
266
///
267
267
/// The attachment is written to a file _within_ `directoryPath`, whose name
268
- /// is derived from the value of the ``Test/Attachment/preferredName``
269
- /// property.
268
+ /// is derived from the value of the ``Attachment/preferredName`` property.
270
269
///
271
270
/// If you pass `--experimental-attachments-path` to `swift test`, the testing
272
271
/// library automatically uses this function to persist attachments to the
@@ -302,8 +301,8 @@ extension Attachment where AttachableValue: ~Copyable {
302
301
/// - Returns: The path to the file that was written.
303
302
///
304
303
/// The attachment is written to a file _within_ `directoryPath`, whose name
305
- /// is derived from the value of the ``Test/ Attachment/preferredName``
306
- /// property and the value of `suffix`.
304
+ /// is derived from the value of the ``Attachment/preferredName`` property and
305
+ /// the value of `suffix`.
307
306
///
308
307
/// If the argument `suffix` always produces the same string, the result of
309
308
/// this function is undefined.
@@ -363,8 +362,8 @@ extension Configuration {
363
362
/// - Parameters:
364
363
/// - event: The event to handle. This event must be of kind
365
364
/// ``Event/Kind/valueAttached(_:)``. If the associated attachment's
366
- /// ``Test/ Attachment/fileSystemPath`` property is not `nil`, this
367
- /// function does nothing.
365
+ /// ``Attachment/fileSystemPath`` property is not `nil`, this function
366
+ /// does nothing.
368
367
/// - context: The context associated with the event.
369
368
///
370
369
/// - Returns: Whether or not to continue handling the event.
0 commit comments