We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mutmut/mutmut/cache.py
Lines 441 to 442 in 53d4aa1
When there are duplicate lines in the file, the program uses cache of the first of such lines. Instead should be used line_number
The text was updated successfully, but these errors were encountered:
Well no, it can't use the line number, because mutmut is built to handle when line number changes due to edits to the file.
Could you show an example of having the same code in multiple lines? That seems pretty strange to me.
Sorry, something went wrong.
But updates of line numbers occur on the early stages, meaning that the lines are up to date during read of cache.
Here are the examples, I've faced while testing Flask: https://github.com/pallets/flask/blob/d0bf462866289ad8bfe29b6e4e1e0f531003ab34/src/flask/blueprints.py#L531 https://github.com/pallets/flask/blob/d0bf462866289ad8bfe29b6e4e1e0f531003ab34/src/flask/blueprints.py#L550
Guess that there can be other situations when lines are similar.
Ah. That's a good point. I'm open to a PR.
No branches or pull requests
mutmut/mutmut/cache.py
Lines 441 to 442 in 53d4aa1
When there are duplicate lines in the file, the program uses cache of the first of such lines. Instead should be used line_number
The text was updated successfully, but these errors were encountered: