KiBot/experiments/__doc__/coverage_mcpyrate/README.md

9 lines
362 B
Markdown

# Coverage and mcpyrate
This example implements the correct solution.
- We must ensure all the new nodes has the proper line info.
- `mcpyrate` can fill it, but will be the line number for the `with` statement.
- We recycle the Str node and copy the line info to the newly created nodes.
- Lines with just an Exp are optimized out and never show coverage.