Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

equalTo() matcher to avoid circular references #48

Open
tomhaines432 opened this issue Feb 9, 2018 · 1 comment
Open

equalTo() matcher to avoid circular references #48

tomhaines432 opened this issue Feb 9, 2018 · 1 comment

Comments

@tomhaines432
Copy link

tomhaines432 commented Feb 9, 2018

requirement: Stop the equalTo() matcher from traversing any object it has already traversed during the match.

driver: This will stop it from overflowing the stack when an object being checked contains a circular reference.

@oneronaut
Copy link
Owner

This could potentially be solved by keeping track of every object traversed and never checking the structure of it again, once it has been traversed. This will stop any kind of circular reference from overflowing the stack during equalTo() matching.

@oneronaut oneronaut changed the title Add a matcher that traverses ContentNodes... equalTo() matcher to avoid circular references Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants