Commit 176dbff
authored
Extend file cloning of attachments to
This PR ensures that an `ABI.EncodedAttachment` instance that's wrapping
an instance of `AnyAttachable` (i.e. one that has not yet been encoded
to JSON) will still be able to clone its underlying file where
appropriate.
I haven't tried to plumb this through attachments stored solely as file
paths because they've already been serialized/deserialized by that
point, which implies a slow path anyway. We can revisit that in a future
PR if we think it's valuable.
Follow-up to #1590 and #1587.
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.ABI.EncodedAttachment. (#1616)1 parent a6346e3 commit 176dbff
1 file changed
+16
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
210 | 224 | | |
211 | 225 | | |
212 | 226 | | |
| |||
221 | 235 | | |
222 | 236 | | |
223 | 237 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 238 | + | |
230 | 239 | | |
231 | 240 | | |
232 | 241 | | |
| |||
0 commit comments