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

Lines counted as missed when calling methods on next line. #66

Open
ZoteTheMighty opened this issue Nov 28, 2018 · 3 comments
Open

Lines counted as missed when calling methods on next line. #66

ZoteTheMighty opened this issue Nov 28, 2018 · 3 comments

Comments

@ZoteTheMighty
Copy link

This issue occurs when using syntax like the following:

local greeting = ("hello, %s")
	:format("world")

Running luacov on a file containing only this code reports coverage as:

*0 local greeting = ("hello, %s")
 1 	:format("world")

If it helps, I'm running this with Lua 5.1.5. This syntax can be pretty clean, so it'd be really nice if luacov understood it!

@hishamhm
Copy link
Member

hishamhm commented Nov 28, 2018 via email

@ZoteTheMighty
Copy link
Author

Okay, that makes sense. I had a feeling it might be infeasible. Thanks for the explanation!

@utmhikari
Copy link

that's what lua state machine features and we have to fix similar problems as far as possible
holy craaaaap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants