File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
Sources/Testing/Events/Recorder Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ extension Event.ConsoleOutputRecorder {
354
354
///
355
355
/// The caller is responsible for presenting this message to the user.
356
356
static func warning( _ message: String , options: Event . ConsoleOutputRecorder . Options ) -> String {
357
- let symbol = Event . Symbol. warning ( ) . stringValue ( options: options)
357
+ let symbol = Event . Symbol. warning. stringValue ( options: options)
358
358
return " \( symbol) \( message) \n "
359
359
}
360
360
}
Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ extension Event.HumanReadableOutputRecorder {
382
382
} else if issues. warningIssueCount > 0 {
383
383
[
384
384
Message (
385
- symbol: . warning( warningIssueCount : issues . warningIssueCount ) ,
385
+ symbol: . warning,
386
386
stringValue: " \( _capitalizedTitle ( for: test) ) \( testName) passed after \( duration) \( issues. description) . "
387
387
)
388
388
]
@@ -431,7 +431,7 @@ extension Event.HumanReadableOutputRecorder {
431
431
} else {
432
432
switch issue. severity {
433
433
case . warning:
434
- symbol = . warning( warningIssueCount : 1 )
434
+ symbol = . warning
435
435
introducer = " a warning "
436
436
case . error:
437
437
symbol = . fail
@@ -538,7 +538,7 @@ extension Event.HumanReadableOutputRecorder {
538
538
} else if issues. warningIssueCount > 0 {
539
539
[
540
540
Message (
541
- symbol: . warning( warningIssueCount : issues . warningIssueCount ) ,
541
+ symbol: . warning,
542
542
stringValue: " Test run with \( testCount. counting ( " test " ) ) passed after \( duration) \( issues. description) . "
543
543
)
544
544
]
Original file line number Diff line number Diff line change @@ -34,11 +34,7 @@ extension Event {
34
34
35
35
/// A warning or caution symbol to use when the developer should be aware of
36
36
/// some condition.
37
- ///
38
- /// - Parameters:
39
- /// - warningIssueCount: The number of issues with warning severity
40
- /// recorded for the test. The default value is `0`.
41
- case warning( warningIssueCount: Int = 0 )
37
+ case warning
42
38
43
39
/// The symbol to use when presenting details about an event to the user.
44
40
case details
You can’t perform that action at this time.
0 commit comments