ó
    Ð]j^C  ã                  óN  • S r SSKJr  SSKrSSKJr  SSKJr  SSKJ	r	  SSK
Jr  SSKJr  SS	KJrJr  \	(       a  SS
KJr  SSKJr            SS jr\ " S S5      5       r\\   r " S S5      r\ " S S5      5       rSS jr      SS jr S       SS jjrSS jrg)z Results of coverage measurement.é    )ÚannotationsN)ÚIterable)Ú	dataclass)ÚTYPE_CHECKING)ÚConfigError)Ú	nice_pair)ÚTArcÚTLineNo)ÚCoverageData)ÚFileReporterÚAnalysisc                óœ  • U R                  5       nUR                  5       nUR                  5       nUR                  U R                  U5      =(       d    / 5      U-  nU(       Ga1  UR	                  5       nU R	                  U5      =(       d    / n	UR                  U	5      n	[        R                  " [        5      n
U H  u  p¼X«   R                  U5        M     U
R                  5        VVs0 s H%  u  p½[        U5      S:X  d  M  U[        U5      S   _M'     nnn[        5       nU	 H:  u  p¼X¼:w  a  UR                  X¼45        M  X¾;   d  M%  UR                  X¾U   45        M<     UR                  U5      nUR                  5       nUR                  5       nO [        5       n[        5       n0 n[        5       n[        UUUUUUUUUUS9
$ s  snnf )z'Create an Analysis from a FileReporter.é   r   ©
Ú	precisionÚfilenameÚhas_arcsÚ
statementsÚexcludedÚexecutedÚarc_possibilities_setÚarcs_executed_setÚexit_countsÚ	no_branch)r   ÚlinesÚexcluded_linesÚtranslate_linesÚarcsÚtranslate_arcsÚcollectionsÚdefaultdictÚsetÚaddÚitemsÚlenÚlistr   Úno_branch_linesr   )Údatar   Úfile_reporterr   r   r   r   r   r   r   ÚdestsÚfromnoÚtonoÚtonosÚsingle_destsÚnew_arcsr   r   r   s                      ÚM/home/mande/repo/quber/.venv/lib/python3.13/site-packages/coverage/results.pyÚanalysis_from_file_reporterr1      s¯  € ð �}‰}‹€HØ×$Ñ$Ó&€JØ×+Ñ+Ó-€HØ×,Ñ,¨T¯Z©Z¸Ó-A×-GÀRÓHÈ:ÑU€HçØ -× 2Ñ 2Ó 4ÐØ#Ÿy™y¨Ó2×8°bˆØ×+Ñ+¨DÓ1ˆô ×'Ò'¬Ó,ˆÛ1‰LˆFØ‰M×Ñ˜dÖ#ñ 2ð 9>¿¹¼ô
Ú8E¡} vÌÈUËÐWXÉÓ"ˆF”D˜“K ‘NÒ"¹ð 	ñ 
ô “5ˆÛ ‰LˆFØ‹~Ø—‘˜f˜^Ö,àÕ)Ø—L‘L &°vÑ*>Ð!?Ö@ñ !ð *×8Ñ8¸ÓBÐØ#×/Ñ/Ó1ˆØ!×1Ñ1Ó3‰	ä #£ÐÜ›EÐØˆÜ“Eˆ	äØØØØØØØ3Ø+ØØñð ùó)
s   Ã+GÄGc                  óÒ   • \ rS rSr% SrS\S'   S\S'   S\S'   S	\S
'   S	\S'   S	\S'   S\S'   S\S'   S\S'   S	\S'   SS jrSSS jjrS S jrS!S jr	S"S jr
S#S jrS#S jrS$S jrSrg)%r   éM   z(The results of analyzing a FileReporter.Úintr   Ústrr   Úboolr   úset[TLineNo]r   r   r   ú	set[TArc]r   r   zdict[TLineNo, int]r   r   c                óN  ^ • [        T R                  5      T l        [        T R                  5      T l        T R
                  T R                  -
  T l        T R                  (       ad  T R                  5       nT R                  5       n[        U 4S jUR                  5        5       5      n[        S UR                  5        5       5      nOS=n=p4[        T R                  S[        T R
                  5      [        T R                   5      [        T R                  5      UUUS9T l        g )Nc              3  ób   >#   • U  H$  u  pUTR                   ;  d  M  [        U5      v •  M&     g 7f©N)Úmissingr%   )Ú.0ÚkÚvÚselfs      €r0   Ú	<genexpr>Ú)Analysis.__post_init__.<locals>.<genexpr>d   s)   øé € Ð$]º±°ÀqÐPT×P\ÑP\ÑG\£V¤S¨§V Vºùs   ƒ/�/c              3  ó<   #   • U  H  u  p[        U5      v •  M     g 7fr;   )r%   )r=   r>   r?   s      r0   rA   rB   e   s   é € Ð$Dº±°¤S¨§V Vºùs   ‚r   r   )r   Ún_filesÚn_statementsÚ
n_excludedÚ	n_missingÚ
n_branchesÚn_partial_branchesÚn_missing_branches)Úsortedr   Úarc_possibilitiesr   Úarcs_executedr   r   r<   r   Ú_total_branchesÚmissing_branch_arcsÚsumr$   ÚNumbersr   r%   r   Únumbers)r@   rH   ÚmbarI   rJ   s   `    r0   Ú__post_init__ÚAnalysis.__post_init__\   sß   ø€ Ü!'¨×(BÑ(BÓ!CˆÔÜ# D×$:Ñ$:Ó;ˆÔØ—‘¨¯©Ñ6ˆŒà�=�=Ø×-Ñ-Ó/ˆJØ×*Ñ*Ó,ˆCÜ!$Ô$]¸¿	¹	¼Ó$]Ó!]ÐÜ!$Ñ$D¸¿	¹	¼Ó$DÓ!DÑàCDÐDˆJÐDÐ+äØ—n‘nØÜ˜TŸ_™_Ó-Ü˜4Ÿ=™=Ó)Ü˜$Ÿ,™,Ó'Ø!Ø1Ø1ñ	
ˆ�ó    c                ó²   • U(       a0  U R                   (       a  U R                  5       R                  5       nOSn[        U R                  U R
                  US9$ )z—The missing line numbers, formatted nicely.

Returns a string like "1-2, 5-11, 13-14".

If `branches` is true, includes the missing branch arcs also.

N)r   )r   rO   r$   Úformat_linesr   r<   )r@   Úbranchesr   s      r0   Úmissing_formattedÚAnalysis.missing_formattedt   s@   € ö ˜ŸŸØ×+Ñ+Ó-×3Ñ3Ó5‰DàˆDä˜DŸO™O¨T¯\©\ÀÑEÐErV   c                óF   ^ • U 4S jT R                    5       n[        U5      $ )z:Returns a sorted list of the un-executed arcs in the code.c              3  ó    >#   • U  HC  nUTR                   ;  d  M  US    TR                  ;  d  M*  US   TR                  ;  d  M?  Uv •  ME     g7f)r   r   N)r   r   r   )r=   Úpr@   s     €r0   rA   Ú(Analysis.arcs_missing.<locals>.<genexpr>…   sV   øé € ð 
â+�Ø˜×.Ñ.Ñ.ó ð �!‘˜DŸN™NÑ*ó ð �!‘˜DŸM™MÑ)÷	 ‰AÚ+ùs   ƒA›A°AÁ	A)rL   rK   )r@   r<   s   ` r0   Úarcs_missingÚAnalysis.arcs_missingƒ   s$   ø€ ô
à×+Ò+ó
ˆô �g‹ÐrV   c                ó|   • U R                   R                  5        VVs/ s H  u  pUS:”  d  M  UPM     snn$ s  snnf )z<Returns a list of line numbers that have more than one exit.r   )r   r$   )r@   Úl1Úcounts      r0   Ú_branch_linesÚAnalysis._branch_linesŽ   s3   € à$(×$4Ñ$4×$:Ñ$:Ô$<ÔJÒ$<‘y�rÀÈÁ	—Ñ$<ÒJÐJùÓJs   ž8®8c                óV   • [        S U R                  R                  5        5       5      $ )z"How many total branches are there?c              3  ó4   #   • U  H  oS :”  d  M
  Uv •  M     g7f)r   N© )r=   rd   s     r0   rA   Ú+Analysis._total_branches.<locals>.<genexpr>”   s   é € ÐMÒ&?˜UÈ1Á9—5‘5Ò&?ùs   ‚	�	)rP   r   Úvalues©r@   s    r0   rN   ÚAnalysis._total_branches’   s"   € äÑM d×&6Ñ&6×&=Ñ&=Ô&?ÓMÓMÐMrV   c                ó  • U R                  5       n[        U R                  5       5      n[        R                  " [
        5      nU H>  u  pEXE:w  d   SU R                   SU SU 35       eXB;   d  M+  X4   R                  U5        M@     U$ )zWReturn arcs that weren't executed from branch lines.

Returns {l1:[l2a,l2b,...], ...}

zIn z, didn't expect z == )r`   r"   re   r    r!   r&   r   Úappend)r@   r<   Úbranch_linesrS   rc   Úl2s         r0   rO   ÚAnalysis.missing_branch_arcs–   sƒ   € ð ×#Ñ#Ó%ˆÜ˜4×-Ñ-Ó/Ó0ˆÜ×%Ò%¤dÓ+ˆÛ‰FˆBØ“8ÐN˜s 4§=¡= /Ð1AÀ"ÀÀTÈ"ÈÐNÓN�8ØÕ!Ø‘—‘˜rÖ"ñ ð ˆ
rV   c                ó  • [        U R                  5       5      n[        R                  " [        5      nU R
                   HF  u  p4X4:w  d   SU< SU< 35       eX44U R                  ;  a  M,  X1;   d  M3  X#   R                  U5        MH     U$ )z„Return arcs that were executed from branch lines.

Only include ones that we considered possible.

Returns {l1:[l2a,l2b,...], ...}

z+Oops: Didn't think this could happen: l1 = z, l2 = )r"   re   r    r!   r&   rM   r   ro   )r@   rp   Úebarc   rq   s        r0   Úexecuted_branch_arcsÚAnalysis.executed_branch_arcs¥   s„   € ô ˜4×-Ñ-Ó/Ó0ˆÜ×%Ò%¤dÓ+ˆØ×(Ô(‰FˆBØ“8ÐVÐKÀbÁWÈHÈrÉgÐVÓV�8Øˆx˜t×9Ñ9Ó9ÙØÕ!Ø‘—‘˜rÖ"ñ )ð ˆ
rV   c                ó    • U R                  5       n0 nU R                  5        H'  nU R                  U   n[        X   5      nXDU-
  4X#'   M)     U$ )zhGet stats about branches.

Returns a dict mapping line numbers to a tuple:
(total_exits, taken_exits).

)rO   re   r   r%   )r@   Úmissing_arcsÚstatsÚlnumÚexitsr<   s         r0   Úbranch_statsÚAnalysis.branch_stats·   s\   € ð ×/Ñ/Ó1ˆØˆØ×&Ñ&Ö(ˆDØ×$Ñ$ TÑ*ˆEÜ˜,Ñ,Ó-ˆGØ ¨'¡/Ð2ˆE‹Kñ )ð ˆrV   )rL   rM   r<   rR   N)ÚreturnÚNone)F)rY   r6   r~   r5   )r~   z
list[TArc])r~   zlist[TLineNo]©r~   r4   )r~   zdict[TLineNo, list[TLineNo]])r~   zdict[TLineNo, tuple[int, int]])Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__annotations__rT   rZ   r`   re   rN   rO   ru   r|   Ú__static_attributes__ri   rV   r0   r   r   M   si   ‡ á2àƒNØƒMØƒNØÓØÓØÓØ$Ó$Ø Ó Ø#Ó#ØÓô
ö0Fô	ôKôNôô÷$rV   c                  ó6   • \ rS rSrSrSS jrS	S jrS
S jrSrg)ÚAnalysisNarroweréË   a÷  
For reducing an `Analysis` to a subset of its lines.

Originally this was a simpler method on Analysis, but that led to quadratic
behavior.  This class does the bulk of the work up-front to provide the
same results in linear time.

Create an AnalysisNarrower from an Analysis, bulk-add region lines to it
with `add_regions`, then individually request new narrowed Analysis objects
for each region with `narrow`.  Doing most of the work in limited calls to
`add_regions` lets us avoid poor performance.
c                óÊ   • Xl         [        R                  " [        5      U l        [        R                  " [        5      U l        [        R                  " [        5      U l        g r;   )Úanalysisr    r!   r"   Úregion2arc_possibilitiesÚregion2arc_executedÚdictÚregion2exit_counts)r@   rŒ   s     r0   Ú__init__ÚAnalysisNarrower.__init__Û   sF   € Ø ŒÜGR×G^ÒG^Ô_bÓGcˆÔ%ÜBM×BYÒBYÔZ]ÓB^ˆÔ ÜJU×JaÒJaÜóK
ˆÕrV   c                óî  ^	• U R                   R                  (       aÙ  0 m	U H  n[        U5      nU H  nUT	U'   M
     M           SU	4S jjnU" U R                   R                  U R                  5        U" U R                   R
                  U R                  5        U R                   R                  R                  5        H0  u  pgT	R                  U5      =n(       d  M  XpR                  U   U'   M2     gg)z�
Pre-process a number of sets of line numbers.  Later calls to `narrow`
with one of these sets will provide a narrowed Analysis.
c                óÐ   >• U  H_  u  p#TR                  U5      =n(       a  X   R                  X#45        TR                  U5      =n(       d  MK  X   R                  X#45        Ma     g r;   )Úgetr#   )Úarc_setÚregion2arcsÚaÚbÚrÚline2regions        €r0   Úcollect_arcsÚ2AnalysisNarrower.add_regions.<locals>.collect_arcsð   s]   ø€ ó $‘D�AØ'ŸO™O¨AÓ.Ð.�qÕ.Ø#™×*Ñ*¨A¨6Ô2Ø'ŸO™O¨AÓ.Ð.�q×.Ø#™×*Ñ*¨A¨6Ö2ò	 $rV   N)r–   r8   r—   zdict[TRegionLines, set[TArc]]r~   r   )rŒ   r   Ú	frozensetr   r�   r   rŽ   r   r$   r•   r�   )
r@   Úlinessr   ÚfzlinesÚlinerœ   ÚlnoÚnumrš   r›   s
            @r0   Úadd_regionsÚAnalysisNarrower.add_regionsã   sß   ø€ ð
 �=‰=×!×!Ø79ˆKã�Ü# EÓ*�Û!�DØ(/�K Ó%ó "ñ  ð
3Ø"ð3à:ð3ð ÷3ñ ˜Ÿ™×<Ñ<¸d×>[Ñ>[Ô\Ù˜Ÿ™×8Ñ8¸$×:RÑ:RÔSà ŸM™M×5Ñ5×;Ñ;Ö=‘�Ø#Ÿ™¨Ó,Ð,�1×,Ø69×+Ñ+¨AÑ.¨sÓ3ò >ð+ "rV   c                óN  • U R                   R                  U-  nU R                   R                  U-  nU R                   R                  U-  nU R                   R                  (       aR  [        U5      nU R                  U   nU R                  U   nU R                  U   nU R                   R                  U-  n	O [        5       n[        5       n0 n[        5       n	[        U R                   R                  U R                   R                  U R                   R                  UUUUUUU	S9
$ )zxCreate a narrowed Analysis.

The current analysis is copied to make a new one that only considers
the lines in `lines`.
r   )rŒ   r   r   r   r   rž   r�   rŽ   r�   r   r"   r   r   r   )
r@   r   r   r   r   r    r   r   r   r   s
             r0   ÚnarrowÚAnalysisNarrower.narrow  s  € ð —]‘]×-Ñ-°Ñ5ˆ
Ø—=‘=×)Ñ)¨EÑ1ˆØ—=‘=×)Ñ)¨EÑ1ˆà�=‰=×!×!Ü Ó&ˆGØ$(×$AÑ$AÀ'Ñ$JÐ!Ø $× 8Ñ 8¸Ñ AÐØ×1Ñ1°'Ñ:ˆKØŸ™×/Ñ/°%Ñ7‰Iä$'£EÐ!Ü #£ÐØˆKÜ›ˆIäØ—m‘m×-Ñ-Ø—]‘]×+Ñ+Ø—]‘]×+Ñ+Ø!ØØØ"7Ø/Ø#Øñ
ð 	
rV   )rŒ   rŽ   r�   r�   N)rŒ   r   r~   r   )rŸ   zIterable[set[TLineNo]]r~   r   )r   r7   r~   r   )	r�   r‚   rƒ   r„   r…   r‘   r¤   r§   r‡   ri   rV   r0   r‰   r‰   Ë   s   † ñô
ô:÷<&
rV   r‰   c                  ó„  • \ rS rSr% SrSrS\S'   SrS\S'   SrS\S'   Sr	S\S'   Sr
S\S	'   SrS\S
'   SrS\S'   SrS\S'   \SS j5       r\SS j5       r\SS j5       r\SS j5       rSS jr\S S j5       r\S S j5       r\S S j5       r\S!S j5       r\S!S j5       r\S!S j5       r\SS j5       rS"S jrS#S jrSrg)$rQ   i*  z�The numerical results of measuring coverage.

This holds the basic statistics from `Analysis`, and is used to roll
up statistics across files.

r   r4   r   rD   rE   rF   rG   rH   rI   rJ   c                ó4   • U R                   U R                  -
  $ )z*Returns the number of executed statements.)rE   rG   rl   s    r0   Ú
n_executedÚNumbers.n_executed<  s   € ð × Ñ  4§>¡>Ñ1Ð1rV   c                ó4   • U R                   U R                  -
  $ )z(Returns the number of executed branches.)rH   rJ   rl   s    r0   Ún_executed_branchesÚNumbers.n_executed_branchesA  s   € ð �‰ ×!8Ñ!8Ñ8Ð8rV   c                ó2   • U R                   U R                  4$ )z4Return numerator/denominator for statement coverage.)r«   rE   rl   s    r0   Úratio_statementsÚNumbers.ratio_statementsF  s   € ð �‰ × 1Ñ 1Ð1Ð1rV   c                ó2   • U R                   U R                  4$ )z1Return numerator/denominator for branch coverage.)r®   rH   rl   s    r0   Úratio_branchesÚNumbers.ratio_branchesK  s   € ð ×'Ñ'¨¯©Ð8Ð8rV   c                ó    • US:”  a  SU-  U-  $ g)zHelper for pc_* properties.r   ç      Y@ri   ©r@   Ú	numeratorÚdenominators      r0   Ú_percentÚNumbers._percentP  s   € à˜‹?Ø˜IÑ%¨Ñ4Ð4ØrV   c                ó4   • U R                   " U R                  6 $ )z/Returns a single percentage value for coverage.)r»   Úratio_coveredrl   s    r0   Ú
pc_coveredÚNumbers.pc_coveredV  s   € ð �}Š}˜d×0Ñ0Ð1Ð1rV   c                ó4   • U R                   " U R                  6 $ )z.Returns the percentage covered for statements.)r»   r±   rl   s    r0   Úpc_statementsÚNumbers.pc_statements[  s   € ð �}Š}˜d×3Ñ3Ð4Ð4rV   c                ó4   • U R                   " U R                  6 $ )z,Returns the percentage covered for branches.)r»   r´   rl   s    r0   Úpc_branchesÚNumbers.pc_branches`  s   € ð �}Š}˜d×1Ñ1Ð2Ð2rV   c                óB   • [        U R                  U R                  5      $ )zìReturns the percent covered, as a string, without a percent sign.

Note that "0" is only returned when the value is truly zero, and "100"
is only returned when the value is truly 100.  Rounding can never
result in either "0" or "100".

)Údisplay_coveredr¿   r   rl   s    r0   Úpc_covered_strÚNumbers.pc_covered_stre  s   € ô ˜tŸ™°·±Ó?Ð?rV   c                óB   • [        U R                  U R                  5      $ )z=Returns the statement percent covered without a percent sign.)rÈ   rÂ   r   rl   s    r0   Úpc_statements_strÚNumbers.pc_statements_strp  s   € ô ˜t×1Ñ1°4·>±>ÓBÐBrV   c                óB   • [        U R                  U R                  5      $ )z:Returns the branch percent covered without a percent sign.)rÈ   rÅ   r   rl   s    r0   Úpc_branches_strÚNumbers.pc_branches_stru  s   € ô ˜t×/Ñ/°·±Ó@Ð@rV   c                ól   • U R                   U R                  -   nU R                  U R                  -   nX4$ )z:Return a numerator and denominator for the coverage ratio.)r«   r®   rE   rH   r¸   s      r0   r¾   ÚNumbers.ratio_coveredz  s5   € ð —O‘O d×&>Ñ&>Ñ>ˆ	Ø×'Ñ'¨$¯/©/Ñ9ˆØÐ%Ð%rV   c                ó|  • [        U R                  U R                  UR                  -   U R                  UR                  -   U R                  UR                  -   U R
                  UR
                  -   U R                  UR                  -   U R                  UR                  -   U R                  UR                  -   5      $ r;   )	rQ   r   rD   rE   rF   rG   rH   rI   rJ   ©r@   Úothers     r0   Ú__add__ÚNumbers.__add__�  s–   € ÜØ�N‰NØ�L‰L˜5Ÿ=™=Ñ(Ø×Ñ × 2Ñ 2Ñ2Ø�O‰O˜e×.Ñ.Ñ.Ø�N‰N˜UŸ_™_Ñ,Ø�O‰O˜e×.Ñ.Ñ.Ø×#Ñ# e×&>Ñ&>Ñ>Ø×#Ñ# e×&>Ñ&>Ñ>ó	
ð 		
rV   c                ó   • US:X  d   eU $ )Nr   ri   rÔ   s     r0   Ú__radd__ÚNumbers.__radd__�  s   € à˜‹zÐˆzØˆrV   ri   Nr€   )r~   ztuple[int, int])r¹   r4   rº   r4   r~   Úfloat)r~   rÛ   )r~   r5   )rÕ   rQ   r~   rQ   )rÕ   r4   r~   rQ   )r�   r‚   rƒ   r„   r…   r   r†   rD   rE   rF   rG   rH   rI   rJ   Úpropertyr«   r®   r±   r´   r»   r¿   rÂ   rÅ   rÉ   rÌ   rÏ   r¾   rÖ   rÙ   r‡   ri   rV   r0   rQ   rQ   *  sJ  ‡ ñð €IˆsÓØ€GˆSÓØ€L�#ÓØ€J�ÓØ€IˆsÓØ€J�ÓØÐ˜ÓØÐ˜Óàó2ó ð2ð ó9ó ð9ð ó2ó ð2ð ó9ó ð9ôð ó2ó ð2ð ó5ó ð5ð ó3ó ð3ð ó@ó ð@ð óCó ðCð óAó ðAð ó&ó ð&ô

÷rV   rQ   c                ó�   • SSU-  -  nSU s=:  a  U:  a  O  OUn O$SU-
  U s=:  a  S:  a	  O  OSU-
  n O[        X5      n U SU S3 $ )zÞReturn a displayable total percentage, as a string.

Note that "0" is only returned when the value is truly zero, and "100"
is only returned when the value is truly 100.  Rounding can never
result in either "0" or "100".

g      ð?é
   r   r·   éd   Ú.Úf)Úround)Úpcr   Únear0s      r0   rÈ   rÈ   “  sY   € ð �"�i‘-Ñ€EØˆ2…~�†~Ø‰Ø
�%‰-˜2Õ	# Ö	#Ø�U‰]‰ä�2Ó!ˆØ��9�+˜Q�ÐÐ rV   c                ó  • [        U 5      n [        U5      n/ nSnSnU  HL  nU[        U5      :¼  a    O<XQU   :X  a  US-  nU(       d  UnUnM.  U(       d  M7  UR                  UW45        SnMN     U(       a  UR                  UW45        U$ )z,Produce a list of ranges for `format_lines`.Nr   r   )rK   r%   ro   )r   r   ÚpairsÚstartÚlidxÚstmtÚends          r0   Ú_line_rangesrë   ¥  s“   € ô
 ˜
Ó#€JÜ�5‹M€Eà€EØ €EØ€DÛˆØ”3�u“:ÓÙØ˜‘;ÓØ�A‰IˆDÞØ�ØŠCßˆUØ�L‰L˜% ˜Ô&ØŠEñ ö Ø�‰�e˜S�\Ô"Ø€LrV   c                óV  • [        X5       Vs/ s H  o3S   [        U5      4PM     nnUbW  [        U5      nU HF  u  pg[        U5       H2  nXa;  d  M
  X�;  d  M  US:”  a  UOSn	UR                  Xf SU	 345        M4     MH     SR	                  S [        U5       5       5      n
U
$ s  snf )a“  Nicely format a list of line numbers.

Format a list of line numbers for printing by coalescing groups of lines as
long as the lines represent consecutive statements.  This will coalesce
even if there are gaps between statements.

For example, if `statements` is [1,2,3,4,5,10,11,12,13,14] and
`lines` is [1,2,5,10,11,13,14] then the result will be "1-2, 5-11, 13-14".

Both `lines` and `statements` can be any iterable. All of the elements of
`lines` must be in `statements`, and all of the values must be positive
integers.

If `arcs` is provided, they are (start,[end,end,end]) pairs that will be
included in the output as long as start isn't in `lines`.

r   Úexitz->z, c              3  ó*   #   • U  H	  oS    v •  M     g7f)éÿÿÿÿNri   )r=   Úts     r0   rA   Úformat_lines.<locals>.<genexpr>ß  s   é € Ð6Ò#5˜a�b–EÒ#5ùs   ‚)rë   r   rK   ro   Újoin)r   r   r   ÚpairÚ
line_itemsÚ
line_exitsr¡   r{   ÚexÚdestÚrets              r0   rX   rX   À  s­   € ô, :FÀjÔ9XÓYÒ9X°˜‘7œI d›OÓ,Ñ9X€JÐYØÑÜ˜D“\ˆ
Û%‰KˆDÜ˜U–m�ØÕ$¨­Ø!# a£™2¨V�DØ×%Ñ% t¨v°R¸°vÐ->Ð&?Ö@ó $ñ &ð �)‰)Ñ6¤6¨*Ô#5Ó6Ó
6€CØ€Jùò Zs   ŽB&c                óx   • SUs=::  a  S::  d  O  SU S3n[        U5      eUS:X  a  U S:w  a  g[        X5      U:  $ )a  Determine if a total should fail due to fail-under.

`total` is a float, the coverage measurement total. `fail_under` is the
fail_under setting to compare with. `precision` is the number of digits
to consider after the decimal point.

Returns True if the total should fail.

r   r·   zfail_under=z' is invalid. Must be between 0 and 100.T)r   râ   )ÚtotalÚ
fail_underr   Úmsgs       r0   Úshould_fail_underrý   ã  sN   € ð �Õ$˜uÕ$Ø˜J˜<Ð'NÐOˆÜ˜#ÓÐð �UÓ˜u¨›~Øä�Ó" ZÑ/Ð/rV   )
r(   r   r   r4   r)   r   r   r5   r~   r   )rã   rÛ   r   r4   r~   r5   )r   úIterable[TLineNo]r   rþ   r~   zlist[tuple[TLineNo, TLineNo]]r;   )r   rþ   r   rþ   r   z.Iterable[tuple[TLineNo, list[TLineNo]]] | Noner~   r5   )rú   rÛ   rû   rÛ   r   r4   r~   r6   )r…   Ú
__future__r   r    Úcollections.abcr   Údataclassesr   Útypingr   Úcoverage.exceptionsr   Úcoverage.miscr   Úcoverage.typesr	   r
   Úcoverage.datar   Úcoverage.pluginr   r1   r   rž   ÚTRegionLinesr‰   rQ   rÈ   rë   rX   rý   ri   rV   r0   Ú<module>r	     s  ðñ 'å "ã Ý $Ý !Ý  å +Ý #ß (æÝ*Ý,ð4Ø
ð4àð4ð  ð4ð ð	4ð
 ô4ðn ÷wð wó ðwðt ˜Ñ!€÷\
ñ \
ð~ ÷eð eó ðeôP!ð$Ø!ðàðð #ôð< <@ð Ø!ð àð ð 9ð ð 	õ	 õF0rV   