-
Notifications
You must be signed in to change notification settings - Fork 375
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(r/faucet): Render call panic #628
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great PR 👍 Some nitpicks and comments on your questions, otherwise looking pretty good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@piux2 can you give a last review on this please?
@tbruyelle solid! Thank you for adding testing cases for rendering results. |
Fix gnolang#621 `Render` prints the controllers in a loop but relies on `gControllersSize` rather than `gControllers.Size()` to determine the number of controllers. The fix simply replaces `gControllersSize` by `gControllers.Size()`. Fix gnolang#627 filetest `Output:` directive doesn't work when the output contains multiple consecutive empty lines, because the method used to collect those comments truncate them (see issue and `ast.CommentGroup.Text()`). The fix replaces this method by a custom one that doesn't truncate.
Co-authored-by: Morgan <git@howl.moe>
Rebased on master, ready to merge. |
Co-authored-by: Morgan <git@howl.moe> Co-authored-by: Manfred Touron <94029+moul@users.noreply.github.com>
Fix #621
Render
prints the controllers in a loop but relies ongControllersSize
rather thangControllers.Size()
to determine the number of controllers. The fix simply replacesgControllersSize
bygControllers.Size()
.Fix #627
filetest
Output:
directive doesn't work when the output contains multiple consecutive empty lines, because the method used to collect those comments truncate them (see issue andast.CommentGroup.Text()
). The fix replaces this method by a custom one that doesn't truncate.Note if it's preferable, I can split this PR because it fixes 2 different things. I did that because the second fix is required by the first one.