Fix parsing system targets in `Package.swift` (#189)

This will unblock making CI work in TokamakUI/Tokamak#333.
This commit is contained in:
Max Desiatov 2020-12-17 13:09:10 +00:00 committed by GitHub
parent 3015e7e4dc
commit ac19a7e868
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -76,6 +76,7 @@ public struct Product: Codable {
public enum TargetType: String, Codable {
case regular
case test
case system
}
public struct Target: Codable {

View File

@ -176,7 +176,7 @@ public final class Toolchain {
switch target.type {
case .regular:
return "Sources/\(target.name)"
case .test:
case .test, .system:
return nil
}
}

View File

@ -155,6 +155,7 @@ extension StackTraceTests {
XCTAssertEqual(stackTrace, expected)
}
}
extension StackTraceTests {
func testSafariStackTrace() {
// swiftlint:disable line_length
@ -285,6 +286,7 @@ extension StackTraceTests {
XCTAssertEqual(stackTrace, expected)
}
}
extension StackTraceTests {
func testChromeStackTrace() {
// swiftlint:disable line_length