File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Sources/Testing/ExitTests Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -268,21 +268,16 @@ extension ExitTest {
268
268
typealias TestContentAccessorHint = ID
269
269
270
270
/// The ID of the represented exit test.
271
- private var _id : ExitTest . ID
271
+ var id : ExitTest . ID
272
272
273
273
/// The body of the represented exit test.
274
- private var _body : @Sendable ( ) async throws -> Void
275
-
276
- init ( id: ExitTest . ID , body: @escaping @Sendable ( ) async throws -> Void ) {
277
- _id = id
278
- _body = body
279
- }
274
+ var body : @Sendable ( ) async throws -> Void
280
275
281
276
/// Make the exit test represented by this instance.
282
277
///
283
278
/// - Returns: A new exit test as represented by this instance.
284
279
func makeExitTest( ) -> ExitTest {
285
- ExitTest ( id: _id , body: _body )
280
+ ExitTest ( id: id , body: body )
286
281
}
287
282
}
288
283
@@ -316,7 +311,7 @@ extension ExitTest {
316
311
if let hintedID = hintAddress? . load ( as: ID . self) , hintedID != id {
317
312
return false
318
313
}
319
- outValue. initializeMemory ( as: Record . self, to: Record ( id: id, body: body) )
314
+ outValue. initializeMemory ( as: Record . self, to: . init ( id: id, body: body) )
320
315
return true
321
316
}
322
317
}
You can’t perform that action at this time.
0 commit comments