Closed jrglee closed 1 year ago
Thank you!! Will there be a new release soon with this? I really appreciate contributors' and maintainers' hard work! 😄
Thank you!! Will there be a new release soon with this? I really appreciate contributors' and maintainers' hard work! 😄
Hey! Just cut a new release so you should be good to update!
Thank you for getting a new release out so quickly!
While adopting my previous contribution in #493, I was still finding case patterns not being counted as branches. This was only in anonymous functions, where the parameter is used as selector, e.g.:
The
match
handling does not instrument the case statements when the selector gets generated. But anonymous functions are a special case because the case statements are written by the user.The solution in this PR handles anonymous function case by checking if the function body itself is a match node in the AST.