17
17
/// contains information about `condition` and its subexpressions (if any.)
18
18
/// - mismatchedErrorDescription: A description of the thrown error that did
19
19
/// not match the expectation, if applicable.
20
- /// - mismatchedExitConditionDescription: A description of the exit condition
21
- /// of the child process that did not match the expectation, if applicable.
22
20
/// - comments: An array of comments describing the expectation. This array
23
21
/// may be empty.
24
22
/// - isRequired: Whether or not the expectation is required. The value of
@@ -58,7 +56,6 @@ func check(
58
56
_ condition: Bool ,
59
57
expectationContext: consuming __ExpectationContext ,
60
58
mismatchedErrorDescription: @autoclosure ( ) -> String ? ,
61
- mismatchedExitConditionDescription: @autoclosure ( ) -> String ? ,
62
59
comments: @autoclosure ( ) -> [ Comment ] ,
63
60
isRequired: Bool ,
64
61
sourceLocation: SourceLocation
@@ -86,7 +83,6 @@ func check(
86
83
// Since this expectation failed, populate its optional fields which are
87
84
// only evaluated and included lazily upon failure.
88
85
expectation. mismatchedErrorDescription = mismatchedErrorDescription ( )
89
- expectation. mismatchedExitConditionDescription = mismatchedExitConditionDescription ( )
90
86
91
87
// Ensure the backtrace is captured here so it has fewer extraneous frames
92
88
// from the testing framework which aren't relevant to the user.
@@ -118,7 +114,6 @@ public func __checkCondition(
118
114
condition,
119
115
expectationContext: expectationContext,
120
116
mismatchedErrorDescription: nil ,
121
- mismatchedExitConditionDescription: nil ,
122
117
comments: comments ( ) ,
123
118
isRequired: isRequired,
124
119
sourceLocation: sourceLocation
@@ -144,7 +139,6 @@ public func __checkCondition<T>(
144
139
optionalValue != nil ,
145
140
expectationContext: expectationContext,
146
141
mismatchedErrorDescription: nil ,
147
- mismatchedExitConditionDescription: nil ,
148
142
comments: comments ( ) ,
149
143
isRequired: isRequired,
150
144
sourceLocation: sourceLocation
@@ -180,7 +174,6 @@ public func __checkConditionAsync(
180
174
condition,
181
175
expectationContext: expectationContext,
182
176
mismatchedErrorDescription: nil ,
183
- mismatchedExitConditionDescription: nil ,
184
177
comments: comments ( ) ,
185
178
isRequired: isRequired,
186
179
sourceLocation: sourceLocation
@@ -207,7 +200,6 @@ public func __checkConditionAsync<T>(
207
200
optionalValue != nil ,
208
201
expectationContext: expectationContext,
209
202
mismatchedErrorDescription: nil ,
210
- mismatchedExitConditionDescription: nil ,
211
203
comments: comments ( ) ,
212
204
isRequired: isRequired,
213
205
sourceLocation: sourceLocation
@@ -242,7 +234,6 @@ public func __checkEscapedCondition(
242
234
condition,
243
235
expectationContext: expectationContext,
244
236
mismatchedErrorDescription: nil ,
245
- mismatchedExitConditionDescription: nil ,
246
237
comments: comments ( ) ,
247
238
isRequired: isRequired,
248
239
sourceLocation: sourceLocation
@@ -270,7 +261,6 @@ public func __checkEscapedCondition<T>(
270
261
optionalValue != nil ,
271
262
expectationContext: expectationContext,
272
263
mismatchedErrorDescription: nil ,
273
- mismatchedExitConditionDescription: nil ,
274
264
comments: comments ( ) ,
275
265
isRequired: isRequired,
276
266
sourceLocation: sourceLocation
@@ -397,7 +387,6 @@ public func __checkClosureCall(
397
387
success,
398
388
expectationContext: expectationContext,
399
389
mismatchedErrorDescription: mismatchExplanationValue,
400
- mismatchedExitConditionDescription: nil ,
401
390
comments: comments ( ) ,
402
391
isRequired: isRequired,
403
392
sourceLocation: sourceLocation
@@ -436,7 +425,6 @@ public func __checkClosureCall(
436
425
success,
437
426
expectationContext: expectationContext,
438
427
mismatchedErrorDescription: mismatchExplanationValue,
439
- mismatchedExitConditionDescription: nil ,
440
428
comments: comments ( ) ,
441
429
isRequired: isRequired,
442
430
sourceLocation: sourceLocation
@@ -546,7 +534,6 @@ public func __checkClosureCall<R>(
546
534
errorMatches,
547
535
expectationContext: expectationContext,
548
536
mismatchedErrorDescription: mismatchExplanationValue,
549
- mismatchedExitConditionDescription: nil ,
550
537
comments: comments ( ) ,
551
538
isRequired: isRequired,
552
539
sourceLocation: sourceLocation
@@ -599,7 +586,6 @@ public func __checkClosureCall<R>(
599
586
errorMatches,
600
587
expectationContext: expectationContext,
601
588
mismatchedErrorDescription: mismatchExplanationValue,
602
- mismatchedExitConditionDescription: nil ,
603
589
comments: comments ( ) ,
604
590
isRequired: isRequired,
605
591
sourceLocation: sourceLocation
0 commit comments