Commit Graph
29 Commits
Author SHA1 Message Date
Stephen Celis 4474243959 wip 2026-02-06 21:29:02 -08:00
Stephen Celis a245c3052e wip 2026-02-06 20:53:39 -08:00
Stephen Celis 634aad4421 wip 2026-02-05 17:25:57 -08:00
Stephen Celis 8848746071 diff 2026-02-05 17:25:17 -08:00
Stephen Celis 3c15303338 wip 2026-02-03 12:18:15 -08:00
stephencelis d9dd49cbe2 Run swift-format 2025-11-14 21:22:15 +00:00
Shai Mishali 4c7b915994 expectDifference/expectNoDifference rename cleanups (#129)
While upgrading I noticed some of the docs / existing tests still use the old naming, so took a few moments to update.
2024-08-21 17:45:10 -04:00
Stephen Celis f48c096f85 Swift Language Support: Drop <5.9, Add 6.0 (#121)
* Swift Language Support: Drop <5.9, Add 6.0

* wip

* wip

* wip

* wip

* wip
2024-06-18 08:03:05 -07:00
Brandon Williams a918a380cc Fix sendable warnings. (#117) 2024-04-17 15:35:35 -07:00
stephencelis 2a7c7110f6 Run swift-format 2024-03-12 21:38:02 +00:00
Stephen Celis f01efb26f3 Improve object diffing tools (#111)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fix

* Swift 5.7 fix

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
2024-03-12 14:31:41 -07:00
Stephen Celis 6ea3b1b6a4 Add experimental support for "diffable" objects (#105)
* Experimental protocol to diff an object w/ history

* wip

* wip

* test

* wip

* wip

* wip

* wip
2024-02-09 13:51:53 -08:00
Stephen Celis 65fc9e2b62 wip 2023-10-31 13:23:42 -07:00
Stephen Celis b803caace2 Filter properties prefixed with _$ (#100) 2023-09-28 06:57:43 -07:00
Stephen Celis 505aa98716 Sort unordered dictionaries when nested in another type (#91)
Fixes #87.

The generic `T` is `Any` when traversing deeper into the mirror. It's
possible that we should be opening existentials more explicitly at each
layer, but we already have the mirror's subject type, so we can use that
instead.
2023-05-12 09:10:32 -07:00
Stephen Celis 84b30e1af7 Only print "no difference detected" when diff output is the same (#85)
* Only print "no difference detected" when diff output is the same

* wip

* fix for Xcode 13.4.1
2023-04-13 14:04:03 -07:00
Stephen Celis 21404fead4 Show difference when values are equal if labels differ (#84) 2023-04-12 16:34:29 -07:00
stephencelis 6a90124ac7 Run swift-format 2023-03-22 18:27:33 +00:00
Stephen Celis be44c34910 Support ordered dictionaries/sets (#80)
We currently auto-sort the children of any mirror with a display style
of dictionary or set alphabetically. This is important for consistent
dumps (good for snapshot tests, too), but affects types that don't need
the sorting, like ordered dictionaries and sets.

This PR introduces an `_UnorderedCollection` protocol to control this
behavior, and conforms `Dictionary`, `Set`, and their `NS`-
predecessors, but leaves other types open to dumping and diffing in an
ordered way by default.
2023-03-22 11:08:42 -07:00
Stephen Celis 3860d0beee Abbreviate enums in diffs (#72)
* Abbreviate enums in diffs

We added the ability to abbreviate nested dumps in #71, but this didn't
transfer to diffs.

* wip

* Fix for old Swift runtime
2023-02-03 11:08:14 -08:00
Stephen Celis 253e3d9130 Differentiate equal dumps of different types (#49)
Fixes #48.
2022-05-03 11:11:45 -04:00
Brentley Jones e7c6d6444d Show label for visited items (#43) 2022-03-02 09:18:32 -05:00
Stephen Celis 1c384565cf Revert removal of platform requirements (#42)
* Partially revert "f8c70309e75569964669af8a068fb0d0312c323f"

* Revert "Remove platform requirements (#37)"

This reverts commit fa2eb2572b.
2022-02-18 18:02:48 -05:00
Stephen Celis fa2eb2572b Remove platform requirements (#37)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
2022-02-14 12:17:32 -05:00
stephencelis 25292d6c6e Run swift-format 2021-10-25 15:01:32 +00:00
Stephen Celis c393756672 Print object identity in diff (#29)
* Print object identity in diff

* Fix for other structures

* Simplify
2021-10-25 10:40:25 -04:00
stephencelis d71cd3c367 Run swift-format 2021-08-25 18:46:27 +00:00
Stephen Celis 4a04330a89 Improve CI coverage 2021-08-23 11:26:25 -04:00
Stephen CelisandBrandon Williams d6c3b5fcc1 ➕➖
Co-authored-by: Brandon Williams <mbrandonw@hey.com>
2021-08-22 22:30:09 -04:00