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

Fix panic when referencing ignored directories #181

Merged
merged 1 commit into from
Mar 28, 2022

Conversation

markmandel
Copy link
Contributor

This fix includes two things:

  1. Check for ok value from ResolveRef in checkInternalHash. If a value was ignored but was a valid link, it would panic as it was not found.
  2. Change the behaviour of discoverRecurse such that it keeps all found Documents, but adds a new IgnoreTest attribute such that we can track if it should be skipped on test, but still referenced in a test.

Closes #126

This fix includes two things:
1. Check for `ok` value from `ResolveRef` in `checkInternalHash`. If a
value was ignored but was a valid link, it would panic as it was not
found.
2. Change the behaviour of `discoverRecurse` such that it keeps all
found `Document`s, but adds a new `IgnoreTest` attribute such that we
can track if it should be skipped on test, but still referenced in
a test.

Closes wjdp#126
@markmandel
Copy link
Contributor Author

Looks like my go fmt picked up a few formatting changes across the codebase. Please let me know if you would like me to revert them.

@wjdp
Copy link
Owner

wjdp commented Mar 28, 2022

@markmandel Thank you for this, sorry for the late action

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

Successfully merging this pull request may close these issues.

Crash parsing HTML document
2 participants