KiBot/experiments/__doc__/coverage_mcpyrate
Salvador E. Tropea 2d55859782 Code style fixes (flake8) 2020-10-17 12:03:06 -03:00
..
.coveragerc Added `mcpyrate` test case to experiments. 2020-10-17 11:10:16 -03:00
Makefile Added `mcpyrate` test case to experiments. 2020-10-17 11:10:16 -03:00
README.md Added `mcpyrate` test case to experiments. 2020-10-17 11:10:16 -03:00
application.py Code style fixes (flake8) 2020-10-17 12:03:06 -03:00
mymacros.py Code style fixes (flake8) 2020-10-17 12:03:06 -03:00
try_mymacros.py Added `mcpyrate` test case to experiments. 2020-10-17 11:10:16 -03:00

README.md

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.