Skip to content

Commit fe01fbc

Browse files
committed
Fix test case issue
1 parent 97a7e07 commit fe01fbc

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

Sources/OpenSwiftUICore/Runtime/TupleTypeDescription.swift

+4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ package struct TupleTypeDescription<P> where P: ProtocolDescriptor {
3737
let type = type.type(at: index)
3838
guard let comformance = P.conformance(of: type) else {
3939
let message = "Ignoring invalid type at index \(index), type \(type)"
40+
#if OPENSWIFTUI_SWIFT_LOG
41+
Log.unlocatedIssuesLog.error("\(message)")
42+
#else
4043
Log.unlocatedIssuesLog.fault("\(message, privacy: .public)")
44+
#endif
4145
continue
4246
}
4347
contentTypes.append((index, comformance))

Tests/OpenSwiftUICoreTests/Runtime/ConditionalMetadataTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ extension TestProtocolDescriptor: ConditionalProtocolDescriptor {
1818
}
1919
}
2020

21+
@Suite(.enabled(if: swiftToolchainSupported))
2122
struct ConditionalMetadataTests {
2223
struct P1: TestProtocol {}
2324
struct P2: TestProtocol {}

Tests/OpenSwiftUICoreTests/Runtime/TupleTypeDescriptionTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ extension TestProtocolDescriptor: TupleDescriptor {
1010
static var typeCache: [ObjectIdentifier: TupleTypeDescription<Self>] = [:]
1111
}
1212

13+
@Suite(.enabled(if: swiftToolchainSupported))
1314
struct TupleTypeDescriptionTests {
1415
// Types that conform to TestProtocol
1516
struct P1: TestProtocol {}

Tests/OpenSwiftUICoreTests/Runtime/TypeConformanceTests.swift

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import Testing
66
import OpenSwiftUICore
7+
import OpenGraphShims
78

89
protocol TestProtocol {}
910

@@ -16,6 +17,7 @@ struct TestProtocolDescriptor: ProtocolDescriptor {
1617
}
1718
}
1819

20+
@Suite(.enabled(if: swiftToolchainSupported))
1921
struct TypeConformanceTests {
2022
struct P1: TestProtocol {}
2123
struct P2 {}

0 commit comments

Comments
 (0)