Skip to content

Commit 74f2c74

Browse files
Add isFailure to ABI.EncodedIssue (#1211)
This adds `isFailure` to `ABI.EncodedIssue` ### Motivation: Clients need to know if an issue is failing so that they know how to handle it. ### Modifications: This adds `isFailure` to `ABI.EncodedIssue` ### 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. --------- Co-authored-by: Jonathan Grynspan <[email protected]>
1 parent 5fd38df commit 74f2c74

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/Testing/ABI/Encoded/ABI.EncodedIssue.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ extension ABI {
2828
///
2929
/// - Warning: Severity is not yet part of the JSON schema.
3030
var _severity: Severity
31+
32+
/// If the issue is a failing issue.
33+
///
34+
/// - Warning: Non-failing issues are not yet part of the JSON schema.
35+
var _isFailure: Bool
3136

3237
/// Whether or not this issue is known to occur.
3338
var isKnown: Bool
@@ -50,6 +55,7 @@ extension ABI {
5055
case .warning: .warning
5156
case .error: .error
5257
}
58+
_isFailure = issue.isFailure
5359
isKnown = issue.isKnown
5460
sourceLocation = issue.sourceLocation
5561
if let backtrace = issue.sourceContext.backtrace {

0 commit comments

Comments
 (0)