Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Aug 26, 2024
1 parent 2a96331 commit 10d7d90
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Sources/CustomDump/Conformances/Foundation.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if canImport(Foundation)
import Foundation

#if canImport(FoundationNetworking)
Expand Down Expand Up @@ -322,4 +321,3 @@ extension UUID: CustomDumpStringConvertible {
"UUID(\(self.uuidString))"
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/CustomDump/Conformances/KeyPath.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Foundation

extension AnyKeyPath: CustomDumpStringConvertible {
public var customDumpDescription: String {
if #available(macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4, *) {
Expand Down
2 changes: 2 additions & 0 deletions Sources/CustomDump/Conformances/Swift.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Foundation

extension Character: CustomDumpRepresentable {
public var customDumpValue: Any {
String(self)
Expand Down
2 changes: 2 additions & 0 deletions Sources/CustomDump/Internal/String.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Foundation

extension String {
init?(stringProtocol value: Any) {
guard let value = value as? any StringProtocol else { return nil }
Expand Down
4 changes: 0 additions & 4 deletions Sources/CustomDump/Internal/Unordered.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#if canImport(Foundation)
import Foundation
#endif

public protocol _UnorderedCollection {}
#if canImport(Foundation)
extension Dictionary: _UnorderedCollection {}
extension NSDictionary: _UnorderedCollection {}
extension NSSet: _UnorderedCollection {}
#endif
extension Set: _UnorderedCollection {}
1 change: 1 addition & 0 deletions Tests/CustomDumpTests/Conformances/FoundationTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import CustomDump
import Foundation
import XCTest

#if canImport(FoundationNetworking)
Expand Down
1 change: 1 addition & 0 deletions Tests/CustomDumpTests/ExpectNoDifferenceTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import CustomDump
import Foundation
import XCTest

#if canImport(Testing)
Expand Down

0 comments on commit 10d7d90

Please sign in to comment.