CustomDump Documentation

Structures

Diff​Format

Describes how to format a difference between two values when using diff(_:_:format:).

Protocols

Custom​Dump​Reflectable

A type that explicitly supplies its own mirror for customDump(_:to:name:indent:maxDepth:) and diff(_:_:format:).

Custom​Dump​Representable

A type that can be converted to a value for the purpose of dumping.

Custom​Dump​String​Convertible

A type with a customized textual representation for customDump(_:to:name:indent:maxDepth:) and diff(_:_:format:).

_Unordered​Collection

Functions

diff(_:​_:​format:​)

Detects differences between two given values by comparing their mirrors and optionally returns a formatted string describing it.

custom​Dump(_:​name:​indent:​max​Depth:​)

Dumps the given value's contents using its mirror to standard output.

custom​Dump(_:​to:​name:​indent:​max​Depth:​)

Dumps the given value's contents using its mirror to the specified output stream.

XCTAssert​Difference(_:​_:​operation:​changes:​file:​line:​)

Asserts that a value has a set of changes.

XCTAssert​NoDifference(_:​_:​_:​file:​line:​)

Asserts that two values have no difference.

Extensions

AnyHashable
AnyKeyPath
Calendar
Character
Decimal
Locale
NSAttributedString
NSCalendar
NSData
NSDate
NSError
NSExceptionName
NSIndexPath
NSIndexSet
NSLocale
NSMeasurement
NSOrderedSet
NSPredicate
NSRange
NSString
NSTimeZone
NSURL
NSURLComponents
NSURLQueryItem
NSUUID
NSValue
ObjectIdentifier
StaticString
String
TimeZone
URL
UUID
UnicodeScalar