golang / mock

GoMock is a mocking framework for the Go programming language.
Apache License 2.0
9.3k stars 610 forks source link

fix parse arrays with const length correctly #520

Closed fsmiamoto closed 3 years ago

fsmiamoto commented 3 years ago

Fixes #294

Description As described in the related issue - #294 - parsing an array with a const defined size would generate a panic.

This PR attempts fix that issue.

Would love to hear some feedback :slightly_smiling_face:

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you review them:

Reviewer Notes

fsmiamoto commented 3 years ago

Thanks for the review! I guess we should be good now.

codyoss commented 3 years ago

Thank you for your contribution! 🎆