KiBot/experiments/__doc__/coverage_mcpyrate/application.py

28 lines
787 B
Python

from mymacros import macros, document # noqa: F401
from mcpyrate.debug import macros, step_expansion # noqa: F401,F811
with step_expansion["dump"]:
with document: # <--- Not covered?
# comentario a
a = "5.1"
""" docu a """
b = False
""" docu b """
c = 3
""" docu c """ # <--- Not covered? Note: if no macro is expanded it could be optimized out.
class d(object):
def __init__(self):
with document:
self.at1 = 4.5
""" documenting d.at1 """ # <--- Not covered?
print("a = "+str(a)+" # "+_help_a) # noqa: F821
print("b = "+str(b)+" # "+_help_b) # noqa: F821
print("c = "+str(c)+" # "+_help_c) # noqa: F821
e = d()
print("e.at1 = "+str(e.at1)+" # "+e._help_at1) # noqa: F821