/opt/cloudlinux/venv/lib/python3.11/site-packages/coverage/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/coverage/__pycache__/annotate.cpython-311.pyc (6017B)
§
2¯Âš†FNã óÆ — d Z ddlmZ ddlZddlZddlmZmZmZ ddl m
Z
ddlmZm
Z
ddlmZ ddlmZ dd lmZ dd
lmZ erddlmZ e
e¦ « Z G d„ d
¦ « ZdS )z'Source file annotation for coverage.py.é )ÚannotationsN)ÚIterableÚOptionalÚ
TYPE_CHECKING)Ú
flat_rootname)Ú
ensure_dirÚisolate_module)ÚFileReporter)Úget_analysis_to_report)ÚAnalysis)ÚTMorf)ÚCoveragec ól — e Zd ZdZdd„Z ej d¦ « Z ej d¦ « Zddd„Z dd„Z
d S )Ú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 "-".
Úcoverager ÚreturnÚNonec óD — || _ | j j | _ d | _ d S ©N)r ÚconfigÚ directory)Úselfr s úe/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/coverage/annotate.pyÚ__init__zAnnotateReporter.__init__0 s € Ø ˆŒ
Ø”mÔ*ˆŒØ(,ˆŒˆˆó z\s*(#|$)z\s*else\s*:\s*(#|$)NÚmorfsúOptional[Iterable[TMorf]]r ú
Optional[str]c ó¨ — || _ | j ¦ « t | j |¦ « D ]\ }}| ||¦ « ŒdS )zIRun the report.
See `coverage.report()` for arguments.
N)r r Úget_datar Ú
annotate_file)r r r ÚfrÚanalysiss r ÚreportzAnnotateReporter.report8 sa € ð #ˆŒØŒ
×ÒÑ Ô Ð Ý2°4´=À%ÑHÔHð -ð -‰LˆB�Ø×Ò˜r 8Ñ,Ô,Ð,Ð,ð -ð -r r" r
r# r c ó& — t |j ¦ « }t |j ¦ « }t |j ¦ « }| j r€t | j ¦ « t j | j t |
¦ « ¦ « ¦ « }| d¦ « r
|dd… dz }|dz
}n
|j dz }t |dd¬¦ « 5 }d x}} d
}
| ¦ « }t | d
¦ « d¬¦ « D �]×\ }}
|t# |¦ « k r0|| |k r$|dz
}|t# |¦ « k r|| |k °$| t# |¦ « k r0|| |k r$| dz
} | t# |¦ « k r|| |k °$|t# |¦ « k r+|| |k r| t# |¦ « k p|| |k }
| j |
¦ « r| d
¦ « nÈ| j |
¦ « rg| t# |¦ « k r| d¦ « n…|| || k r| d¦ « n]| d¦ « nG||v r| d¦ « n-|
r| d¦ « n| d¦ « | |
¦ « �ŒÙ ddd¦ « dS # 1 swxY w Y dS )z]Annotate a single file.
`fr` is the FileReporter for the file to annotate.
Ú_pyNéýÿÿÿz.pyz,coverÚwzutf-8)Úencodingr Té )Ústartz z> z! z- )ÚsortedÚ
statementsÚmissingÚexcludedr r ÚosÚpathÚjoinr Úrelative_filenameÚendswithÚfilenameÚopenÚsourceÚ enumerateÚ
splitlinesÚlenÚblank_reÚmatchÚwriteÚelse_re)r r" r# r- r. r/ Ú dest_fileÚdestÚiÚjÚcoveredr7 ÚlinenoÚlines r r! zAnnotateReporter.annotate_fileC sX € õ ˜HÔ/Ñ0Ô0ˆ
ݘÔ)Ñ*Ô*ˆÝ˜(Ô+Ñ,Ô,ˆàŒ>ð /Ý�t”~Ñ&Ô&Ð&ÝœŸš T¤^µ]À2×CWÒCWÑCYÔCYÑ5ZÔ5ZÑ[Ô[ˆIØ×!Ò! %Ñ(Ô(ð
3Ø% c r cœN¨UÑ2� ؘÑ!ˆIˆIàœ hÑ.ˆIå
�)˜S¨7Ð
3Ñ
3Ô
3ð !°t؈IˆA�؈GØ—Y’Y‘[”[ˆFÝ )¨&×*;Ò*;¸DÑ*AÔ*AÈÐ KÑ KÔ Kð
!ñ
!‘�˜Ø�#˜j™/œ/Ò)Ð)¨j¸¬m¸fÒ.DÐ.Dؘ‘F�Að �#˜j™/œ/Ò)Ð)¨j¸¬m¸fÒ.DÐ.Dà�#˜g™,œ,Ò&Ð&¨7°1¬:¸Ò+>Ð+>ؘ‘F�Að �#˜g™,œ,Ò&Ð&¨7°1¬:¸Ò+>Ð+>à•s˜:‘”Ò&Ð&¨:°a¬=¸FÒ+BÐ+BØ¥3 w¡<¤<Ò/ÐF°7¸1´:ÀÒ3F�GØ”=×&Ò& tÑ,Ô,ð %Ø—J’J˜tÑ$Ô$Ð$Ð$Ø”\×'Ò'¨Ñ-Ô-ð
%à�C ™LœLÒ(Ð(ØŸ
š
4Ñ(Ô(Ð(Ð(Ø# Aœ¨'°!¬*Ò4Ð4ØŸ
š
4Ñ(Ô(Ð(Ð(àŸ
š
4Ñ(Ô(Ð(Ð(ؘxÐ'Ð'Ø—J’J˜tÑ$Ô$Ð$Ð$Øð %Ø—J’J˜tÑ$Ô$Ð$Ð$à—J’J˜tÑ$Ô$Ð$à—
’
˜4Ñ Ô Ð Ñ ð1
!ð !ð !ð !ñ !ô !ð !ð !ð !ð !ð !ð !ð !øøøð !ð !ð !ð !ð !ð !s à HLÌL
Ì
L
)r r r r r )r r r r r r )r" r
r# r r r )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r ÚreÚcompiler; r> r$ r! © r r r r s„ € € € € € ðð ð*-ð -ð -ð -ð
ˆrŒz˜+Ñ&Ô&€H؈bŒjÐ/Ñ0Ô0€Gð -ð -ð -ð -ð -ð/!ð /!ð /!ð /!ð /!ð /!r r )rI Ú
__future__r r0 rJ Útypingr r r Úcoverage.filesr Ú
coverage.miscr r Úcoverage.pluginr
Úcoverage.report_corer Úcoverage.resultsr Úcoverage.typesr
r r r rL r r ú
rU s& ðð .Ð -à "Ð "Ð "Ð "Ð "Ð "à € € € Ø € € € à 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4à (Ð (Ð (Ð (Ð (Ð (Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ø (Ð (Ð (Ð (Ð (Ð (Ø 7Ð 7Ð 7Ð 7Ð 7Ð 7Ø %Ð %Ð %Ð %Ð %Ð %Ø Ð Ð Ð Ð Ð àð "Ø!Ð!Ð!Ð!Ð!Ð!à€^�BÑÔ€ðX!ð X!ð X!ð X!ð X!ñ X!ô X!ð X!ð X!ð X!r