Closed jmal0 closed 3 months ago
The workflow initially failed due to the use of python 3.6+ syntax in my added tests, in the second push I work around this by embedding the code to be parsed in strings. The python tests are now passing when run with python 2.7, however there were failures in testErlang.py and testKotlin.py which are failing on master as well.
My company needs this functionality as well. Would be interesting to see if there is any feedback.
Thanks for the addition and fix. The test coverage looks great.
Addresses https://github.com/terryyin/lizard/issues/354
In several situations, the argument count reported for python is incorrect. In particular:
Below is a code snippet that reproduces these issues:
Running
lizard -a 2 demo.py
on this reports the following:The correct result is reported with the fixes included in the second commit of this branch:
I have included tests in the first commit of this branch that reproduce the issue and check for the correct result