-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle circular reference in snap function (#942)
* handle circular references during reccursive child search * add tests for circular reference snapshotting as dump * fixes --------- Co-authored-by: Oguz Yuksel <[email protected]> Co-authored-by: Brandon Williams <[email protected]> Co-authored-by: Brandon Williams <[email protected]>
- Loading branch information
1 parent
d69b3df
commit 41e5159
Showing
5 changed files
with
54 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
Tests/SnapshotTestingTests/__Snapshots__/SnapshotTestingTests/testRecursion.1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
▿ Father | ||
▿ child: Optional<Child> | ||
▿ some: Child | ||
▿ father (circular reference detected) |
4 changes: 4 additions & 0 deletions
4
Tests/SnapshotTestingTests/__Snapshots__/SnapshotTestingTests/testRecursion.2.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
▿ Child | ||
▿ father: Father | ||
▿ child: Optional<Child> | ||
▿ some (circular reference detected) |