Your IP : 216.73.216.213
B
E�W(
� @ s\ d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ee�ZG dd� de �Z
dS )z'Source file annotation for coverage.py.� N)�
flat_rootname)�isolate_module)�Reporterc sF e Zd ZdZ� fdd�Ze�d�Ze�d�Zddd�Z d d
� Z
� ZS )�AnnotateReportera Generate annotated source files showing line coverage.
This reporter creates annotated copies of the measured source files. Each
.py file is copied as a .py,cover file, with a left-hand margin annotating
each line::
> def h(x):
- if 0: #pragma: no cover
- pass
> if x == 1:
! a = 1
> else:
> a = 2
> h(2)
Executed lines use '>', lines not executed use '!', lines excluded from
consideration use '-'.
c s t t| ��||� d | _d S )N)�superr �__init__� directory)�self�coverage�config)� __class__� �D/opt/alt/python37/lib64/python3.7/site-packages/coverage/annotate.pyr '