Skip to content

Commit 10d7d90

Browse files
committed
wip
1 parent 2a96331 commit 10d7d90

File tree

7 files changed

+8
-6
lines changed

7 files changed

+8
-6
lines changed

Sources/CustomDump/Conformances/Foundation.swift

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#if canImport(Foundation)
21
import Foundation
32

43
#if canImport(FoundationNetworking)
@@ -322,4 +321,3 @@ extension UUID: CustomDumpStringConvertible {
322321
"UUID(\(self.uuidString))"
323322
}
324323
}
325-
#endif

Sources/CustomDump/Conformances/KeyPath.swift

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Foundation
2+
13
extension AnyKeyPath: CustomDumpStringConvertible {
24
public var customDumpDescription: String {
35
if #available(macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4, *) {

Sources/CustomDump/Conformances/Swift.swift

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Foundation
2+
13
extension Character: CustomDumpRepresentable {
24
public var customDumpValue: Any {
35
String(self)

Sources/CustomDump/Internal/String.swift

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Foundation
2+
13
extension String {
24
init?(stringProtocol value: Any) {
35
guard let value = value as? any StringProtocol else { return nil }
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
#if canImport(Foundation)
21
import Foundation
3-
#endif
42

53
public protocol _UnorderedCollection {}
6-
#if canImport(Foundation)
74
extension Dictionary: _UnorderedCollection {}
85
extension NSDictionary: _UnorderedCollection {}
96
extension NSSet: _UnorderedCollection {}
10-
#endif
117
extension Set: _UnorderedCollection {}

Tests/CustomDumpTests/Conformances/FoundationTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import CustomDump
2+
import Foundation
23
import XCTest
34

45
#if canImport(FoundationNetworking)

Tests/CustomDumpTests/ExpectNoDifferenceTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import CustomDump
2+
import Foundation
23
import XCTest
34

45
#if canImport(Testing)

0 commit comments

Comments
 (0)