ó
    Ð]jÂÙ  ã                  ód  • S r SSKJr  SSKrSSKrSSKrSSKrSSKrSSKrSSK	rSSK
r
SSKrSSKrSSKrSSKrSSKJrJrJr  SSKJr  SSKJrJrJr  SSKJr  SSKJr  SS	KJr  SS
KJ r J!r!  SSK"J#r#J$r$  SSK%J&r&J'r'  SSK(J)r)J*r*  SSK+J,r,J-r-J.r.J/r/J0r0  SSK1J2r2  SSK3J4r4J5r5J6r6J7r7  SSK8J9r9J:r:J;r;J<r<  SSK=J>r>  SSK?J@r@  SSKAJBrB  SSKCJDrD  SSKEJFrFJGrGJHrHJIrIJJrJ  SSKKJLrL  SSKMJNrN  SSKOJPrP  SSKQJRrRJSrS  SSKTJUrU  SSKVJWrW  SSKXJYrY  SSKZJ[r[J\r\  SSK]J^r^J_r_J`r`JaraJbrbJcrcJdrdJereJfrf  SS KgJhrh  SS!KiJjrj  \I" \5      r\RÖ                  S3S# j5       rl\F" S$5      rm\mrnS%ro " S& S"\`5      rp\q" \Rä                  " S'S5      5      (       a  SS(K+JsrsJtrt  \s" \t" S)S*9S+/S,9" \p5      rpS-S.S/.     S4S0 jjruS5S1 jrvS5S2 jrwg)6z&Central control stuff for coverage.py.é    )ÚannotationsN)ÚCallableÚIterableÚIterator)Ú	FrameType)ÚIOÚAnyÚcast)Úenv)ÚAnnotateReporter)Ú	Collector)ÚCoverageConfigÚread_coverage_config)Úcombine_context_switchersÚ"should_start_context_test_function)ÚCTRACER_FILEÚCore)ÚCoverageDataÚcombine_parallel_data)ÚDebugControlÚNoDebuggingÚrelevant_environment_displayÚshort_stackÚwrite_formatted_info)Údisposition_debug_msg)ÚConfigErrorÚCoverageExceptionÚCoverageWarningÚPluginError)ÚPathAliasesÚabs_fileÚrelative_filenameÚset_relative_directory)ÚHtmlReporter)ÚInOrOut)ÚJsonReporter)ÚLcovReporter)ÚDefaultValueÚbool_or_noneÚensure_dir_for_fileÚisolate_moduleÚ
join_regex)Úpatch_multiprocessing)Úapply_patches)ÚFileReporter)ÚPluginsÚTCoverageInit)ÚPythonFileReporter)ÚSummaryReporter)Úrender_report)ÚAnalysisÚanalysis_from_file_reporter)	ÚFilePathÚTConfigSectionInÚTConfigurableÚTConfigValueInÚTConfigValueOutÚTFileDispositionÚTLineNoÚTMorfÚTMorfs)Ú__url__)ÚXmlReporterÚCoveragec              +  óÆ   #   • U R                   nU R                   R                  5       U l          U R                   R                  " S0 UD6  Sv •  X l         g! X l         f = f7f)z»Temporarily tweak the configuration of `cov`.

The arguments are applied to `cov.config` with the `from_args` method.
At the end of the with-statement, the old configuration is restored.
N© )ÚconfigÚcopyÚ	from_args)ÚcovÚkwargsÚoriginal_configs      ÚM/home/mande/repo/quber/.venv/lib/python3.13/site-packages/coverage/control.pyÚoverride_configrL   M   sI   é € ð —j‘j€OØ—‘—‘Ó"€C„Jð%Ø�
‰
×ÒÑ&˜vÒ&Ûà$�
ø�_�
üs   ‚,A!¯ A ÁA!ÁAÁA!ÚMISSINGz:data:c                  óp  • \ rS rSr% Sr/ rS\S'   \S9S j5       r\	SSSSSSSSSSSSSSSSS4                                     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?S@S jjrSAS jrSBS jrSCS jrS<S jrS<S jrSDS jrS<S jrS<S jr\R6                  SES j5       rSFSGS jjrSHS jrS<S jrSIS jr SJSKS jjr!SJSLS jjr"S<S  jr#SMS! jr$SJSNS" jjr%S<S# jr&SOS$ jr'   SP       SQS% jjr(SRS& jr)S<S' jr*SSS( jr+    STS) jr,\-R\                  " S*S+9SUS, j5       r/SVS- jr0\-R\                  " S*S+9SWS. j5       r1 SX   SYS/ jjr2S<S0 jr3            SZ                         S[S1 jjr4      S\             S]S2 jjr5            SZ                         S^S3 jjr6       S_               S`S4 jjr7        Sa                 SbS5 jjr8      S\             ScS6 jjr9SdS7 jr:S8r;g)erB   éb   aŽ  Programmatic access to coverage.py.

To use::

    from coverage import Coverage

    cov = Coverage()
    cov.start()
    #.. call your code ..
    cov.stop()
    cov.html_report(directory="covhtml")

A context manager is available to do the same thing::

    cov = Coverage()
    with cov.collect():
        #.. call your code ..
    cov.html_report(directory="covhtml")

Note: in keeping with Python custom, names starting with underscore are
not part of the public API. They might stop working at any point.  Please
limit yourself to documented methods to avoid problems.

Methods can raise any of the exceptions described in :ref:`api_exceptions`.

zlist[Coverage]Ú
_instancesc                óD   • U R                   (       a  U R                   S   $ g)zvGet the latest started `Coverage` instance, if any.

Returns: a `Coverage` instance, or None.

.. versionadded:: 5.0

éÿÿÿÿN)rP   )Úclss    rK   ÚcurrentÚCoverage.current�   s   € ð �>�>Ø—>‘> "Ñ%Ð%àó    NFTc                ót  • [        5       U l        USL U l        [        U[        5      (       a  SnUb  [
        R                  " U5      nSU l        U=U l        U l	        X l
        SU l        SU l        Xðl        [        5       U l        UU l        / U l        [%        5       U l        SU l        [+        5       U l        [/        [0        [2           S-  U5      U l        SU l        / U l        SU l        SU l        SU l        [@        U l!        S=U l"        U l#        0 U l$        SU l%        SU l&        SU l'        SU l(        SU l)        [        U[T        5      (       aF  URW                  [X        5      (       a,  [         RZ                  " U[]        [X        5      S 5      U l        O[        U[^        5      (       d  [
        R                  " U5      n[a        S0 SU_SU Rb                  _SU_SU_SU_S	U_S
[e        U5      _SU_SU	_SU
_SU_SU_SU_SU_SU_SU_SU_6U l        [f        Rh                  (       d  [k        5         gg)a  
Many of these arguments duplicate and override values that can be
provided in a configuration file.  Parameters that are missing here
will use values from the config file.

`data_file` is the base name of the data file to use. The config value
defaults to ".coverage".  None can be provided to prevent writing a data
file.  `data_suffix` is appended (with a dot) to `data_file` to create
the final file name.  If `data_suffix` is simply True, then a suffix is
created with the machine and process identity included.

`cover_pylib` is a boolean determining whether Python code installed
with the Python interpreter is measured.  This includes the Python
standard library and any packages installed with the interpreter.

If `auto_data` is true, then any existing data file will be read when
coverage measurement starts, and data will be saved automatically when
measurement stops.

If `timid` is true, then a slower and simpler trace function will be
used.  This is important for some environments where manipulation of
tracing functions breaks the faster trace function.

If `branch` is true, then branch coverage will be measured in addition
to the usual statement coverage.

`config_file` determines what configuration file to read:

    * If it is ".coveragerc", it is interpreted as if it were True,
      for backward compatibility.

    * If it is a string, it is the name of the file to read.  If the
      file can't be read, it is an error.

    * If it is True, then a few standard files names are tried
      (".coveragerc", "setup.cfg", "tox.ini").  It is not an error for
      these files to not be found.

    * If it is False, then no configuration file is read.

`source` is a list of file paths or package names.  Only code located
in the trees indicated by the file paths or package names will be
measured.

`source_pkgs` is a list of package names. It works the same as
`source`, but can be used to name packages where the name can also be
interpreted as a file path.

`source_dirs` is a list of file paths. It works the same as
`source`, but raises an error if the path doesn't exist, rather
than being treated as a package name.

`include` and `omit` are lists of file name patterns. Files that match
`include` will be measured, files that match `omit` will not.  Each
will also accept a single string argument.

`debug` is a list of strings indicating what debugging information is
desired.

`concurrency` is a string indicating the concurrency library being used
in the measured code.  Without this, coverage.py will get incorrect
results if these libraries are in use.  Valid strings are "greenlet",
"eventlet", "gevent", "multiprocessing", or "thread" (the default).
This can also be a list of these strings.

If `check_preimported` is true, then when coverage is started, the
already-imported files will be checked to see if they should be
measured by coverage.  Importing measured files before coverage is
started can mean that code is missed.

`context` is a string to use as the :ref:`static context
<static_contexts>` label for collected data.

If `messages` is true, some messages will be printed to stdout
indicating what is happening.

If `plugins` are passed, they are an iterable of function objects
accepting a `reg` object to register plugins, as described in
:ref:`api_plugin`.  When they are provided, they will override the
plugins found in the coverage configuration file.

.. versionadded:: 4.0
    The `concurrency` parameter.

.. versionadded:: 4.2
    The `concurrency` parameter can now be a list of strings.

.. versionadded:: 5.0
    The `check_preimported` and `context` parameters.

.. versionadded:: 5.3
    The `source_pkgs` parameter.

.. versionadded:: 6.0
    The `messages` parameter.

.. versionadded:: 7.7
    The `plugins` parameter.

.. versionadded:: 7.8
    The `source_dirs` parameter.
NTFÚconfig_fileÚwarnÚ	data_fileÚcover_pylibÚtimidÚbranchÚparallelÚsourceÚsource_pkgsÚsource_dirsÚrun_omitÚrun_includeÚdebugÚreport_omitÚreport_includeÚconcurrencyÚcontextrD   )6r   rE   Ú_no_diskÚ
isinstancer(   ÚosÚfspathÚ_debug_fileÚ
_auto_loadÚ
_auto_saveÚ_data_suffix_specifiedÚ_warn_no_dataÚ_warn_unimported_sourceÚ_warn_preimported_sourceÚsetÚ_no_warn_slugsÚ	_messagesÚ	_warningsr   Ú_debugÚ_inoroutr0   Ú_pluginsr
   r   r1   Ú_plugin_overrideÚ_dataÚ_data_to_closeÚ_coreÚ
_collectorÚ_metacovr!   Ú_file_mapperÚ_data_suffixÚ_run_suffixÚ_exclude_reÚ_old_sigtermÚ_initedÚ_inited_for_startÚ_startedÚ_should_write_debugÚstrÚ
startswithÚCONFIG_DATA_PREFIXÚdeserializeÚlenÚboolr   Ú_warnr)   r   ÚMETACOVÚ _prevent_sub_process_measurement)ÚselfrZ   Údata_suffixr[   Ú	auto_datar\   r]   rX   r_   r`   ra   ÚomitÚincluderd   rg   Úcheck_preimportedrh   ÚmessagesÚpluginss                      rK   Ú__init__ÚCoverage.__init__�   s]  € ôz %Ó&ˆŒð " TÐ)ˆŒÜ�i¤×.Ñ.ØˆIØÑ ÜŸ	š	 )Ó,ˆIð ,0ˆÔà,5Ð5ˆŒ˜$œ/Ø&1Ô#ð "ˆÔØ'+ˆÔ$Ø(9Ô%Ü(+«ˆÔØ!ˆŒð %'ˆŒô %0£MˆŒØ(,ˆŒÜ!(£ˆŒÜ $¤X¬mÑ%<¸tÑ%CÀWÓ MˆÔØ*.ˆŒ
Ø24ˆÔØ"&ˆŒ
Ø,0ˆŒØˆŒä2:ˆÔØ/3Ð3ˆÔ˜DÔ,Ø+-ˆÔØKOˆÔð ˆŒØ!&ˆÔàˆŒà#'ˆÔ ô �k¤3×'Ñ'¨K×,BÑ,BÔCU×,VÑ,VÜ(×4Ò4°[ÄÔEWÓAXÐAZÐ5[Ó\ˆD�Kä˜k¬4×0Ñ0Ü Ÿiši¨Ó4�Ü.ò Ù'ðà—Z’Zðñ $ðñ (ð	ñ
 ðñ ðô & kÔ2ðñ ðñ (ðñ (ðñ ðñ $ðñ ðñ !ðñ  'ðñ  (ð!ñ"  ð#ˆDŒKô2 �{�{Ü,Õ.ð rV   c                óþ   • U R                   b   U R                   R                  R                  OSnU R                  b  [	        U R                  R
                  5      OSnSS[        U 5      S 3-   SU 3-   SU 3-   S-   $ )Nú-none-z	<Coveragez @0xÚxz core=z data_file=Ú>)r~   Útracer_classÚ__name__r|   ÚreprÚ	_filenameÚid)r“   Ú	core_namerZ   s      rK   Ú__repr__ÚCoverage.__repr__b  s‰   € Ø8<¿
¹
Ñ8N�D—J‘J×+Ñ+×4Ò4ÐT\ˆ	Ø26·*±*Ñ2H”D˜Ÿ™×-Ñ-Ô.Èhˆ	àØ”R˜“X˜a�LÐ!ñ"à�y�kÐ"ñ#ð ˜I˜;Ð'ñ(ð ñ	ð	
rV   c                óÖ  • U R                   (       a  gSU l         [        U R                  R                  U R                  U R                  R
                  5      U l        U R                  R                  S5      (       a  U R                  R                  S5        SU R                  R                  =(       d    S;   a  SU R                  l
        0 U l        [        5         U R                  R                  (       a  [        U l        [!        U R                  5      U l        U R$                  (       a&  U R"                  R'                  U R$                  5        O:U R"                  R)                  U R                  R*                  U R                  5        U R"                  R,                   HA  nUR/                  X R                  /[1        [2        R2                  " 5       5      S-     5        MC     g)z¿Set all the initial state.

This is called by the public methods to initialize state. This lets us
construct a :class:`Coverage` object, then tweak its state before this
function is called.

NTÚprocesszCoverage._initÚmultiprocessingrD   é   )r†   r   rE   rd   rm   Ú
debug_filerx   ÚshouldÚwriterg   r^   r„   r#   Úrelative_filesr"   r�   r0   rz   r{   Úload_from_callablesÚload_from_configrš   ÚconfigurersÚ	configureÚintÚtime©r“   Úplugins     rK   Ú_initÚCoverage._initm  sJ  € ð �<�<ØàˆŒô # 4§;¡;×#4Ñ#4°d×6FÑ6FÈÏÉ×H^ÑH^Ó_ˆŒØ�;‰;×Ñ˜i×(Ñ(Ø�K‰K×ÑÐ.Ô/à §¡×!8Ñ!8×!>¸BÓ?ð $(ˆD�K‰KÔ ð ˆÔäÔ Ø�;‰;×%×%Ü 1ˆDÔô   §¡Ó,ˆŒØ× × Ø�M‰M×-Ñ-¨d×.CÑ.CÕDà�M‰M×*Ñ*¨4¯;©;×+>Ñ+>ÀÇÁÔLð —m‘m×/Ô/ˆFð
 ×Ñ˜d§K¡KÐ0´´T·Y²Y³[Ó1AÀAÑ1EÑFÖGò 0rV   c                ó  • U R                   (       a  SU l         U R                  5         U R                  R                  (       aE  U R                  R                  [	        5       ;   a"  [        SU R                  R                   35      egg)z,Stuff to do after everything is initialized.FzCrashing because called by N)r‰   Ú_write_startup_debugrE   Ú_crashr   ÚRuntimeError©r“   s    rK   Ú
_post_initÚCoverage._post_initš  sh   € à×#×#Ø',ˆDÔ$Ø×%Ñ%Ô'ð �;‰;×× $§+¡+×"4Ñ"4¼»Ó"EÜÐ!<¸T¿[¹[×=OÑ=OÐ<PÐQÓRÐRð #FÐrV   c                ó  • SnU R                   R                  5          U R                   R                  S5      (       a;  [        U R                   R                  SU R
                  R                  5       5        SnU R                   R                  S5      (       a�  [        U R                   R                  SU R                  5       5        U R                   H@  nSUR                  -   n[        U R                   R                  X2R                  5       5        MB     SnU R                   R                  S5      (       a6  [        U R                   R                  S[        R                  " 5       5        SnU R                   R                  S5      (       a6  [        U R                   R                  S[        R                  " 5       5        SnSSS5        U(       a"  [        U R                   R                  S	S
5        gg! , (       d  f       N8= f)z*Write out debug info at startup if needed.FrE   TÚsyszsys: ÚpybehaveÚsqliteNÚendrD   )rx   Úwithout_callersr®   r   r¯   rE   Ú
debug_infoÚsys_inforz   Ú_coverage_plugin_namer   r   )r“   Ú	wrote_anyr¸   Úheaders       rK   r¼   ÚCoverage._write_startup_debug¥  sc  € àˆ	Ø�[‰[×(Ñ(Õ*Ø�{‰{×!Ñ! (×+Ñ+Ü$ T§[¡[×%6Ñ%6¸À$Ç+Á+×BXÑBXÓBZÔ[Ø �	à�{‰{×!Ñ! %×(Ñ(Ü$ T§[¡[×%6Ñ%6¸¸t¿}¹}»ÔOØ"Ÿmœm�FØ$ v×'CÑ'CÑC�FÜ(¨¯©×):Ñ):¸FÇOÁOÓDUÖVñ ,ð !�	à�{‰{×!Ñ! *×-Ñ-Ü$ T§[¡[×%6Ñ%6¸
ÄCÇNÂNÓDTÔUØ �	à�{‰{×!Ñ! (×+Ñ+Ü$ T§[¡[×%6Ñ%6¸Ä,×BWÒBWÓBYÔZØ �	÷% +ö( Ü  §¡×!2Ñ!2°E¸2Õ>ð ÷) +Õ*ús   �F)G8Ç8
Hc                óâ   • U R                   c   eU R                   R                  X5      nU R                  R                  S5      (       a$  U R                  R	                  [        U5      5        U$ )ztDecide whether to trace execution in `filename`.

Calls `_should_trace_internal`, and returns the FileDisposition.

Útrace)ry   Úshould_tracerx   r®   r¯   r   )r“   ÚfilenameÚframeÚdisps       rK   Ú_should_traceÚCoverage._should_trace¿  sZ   € ð �}‰}Ñ(Ð(Ð(Ø�}‰}×)Ñ)¨(Ó:ˆØ�;‰;×Ñ˜g×&Ñ&Ø�K‰K×ÑÔ3°DÓ9Ô:ØˆrV   c                ó  • U R                   c   eU R                   R                  X5      nU R                  R                  S5      (       a2  U(       d  SU< 3nO	SU< SU 3nU R                  R	                  U5        U(       + $ )zˆCheck a file name against the include/omit/etc, rules, verbosely.

Returns a boolean: True if the file should be traced, False if not.

rÏ   z
Including zNot including z: )ry   Úcheck_include_omit_etcrx   r®   r¯   )r“   rÑ   rÒ   ÚreasonÚmsgs        rK   Ú_check_include_omit_etcÚ Coverage._check_include_omit_etcË  sx   € ð �}‰}Ñ(Ð(Ð(Ø—‘×5Ñ5°hÓFˆØ�;‰;×Ñ˜g×&Ñ&ÞØ" 8¡,Ð/‘à& x¡l°"°V°HÐ=�Ø�K‰K×Ñ˜cÔ"àŒzÐrV   c                óî  • U R                   (       d$  [        U R                  R                  5      U l         X R                   ;   a  gU R                  R                  U5        U(       a  U SU S[         SU 3nU R                  R                  S5      (       a  S[        R                  " 5        SU 3n[        R                  " U[        SS	9  U(       a!  Uc   eU R                   R                  U5        gg)
zšUse `msg` as a warning.

For warning suppression, use `slug` as the shorthand.

If `once` is true, only show this warning once (determined by the
slug.)

Nz (z); see z/messages.html#warning-ÚpidÚ[z] r¬   )ÚcategoryÚ
stacklevel)ru   rt   rE   Údisable_warningsrw   Úappendr@   rx   r®   rk   ÚgetpidÚwarningsrY   r   Úadd)r“   rÙ   ÚslugÚonces       rK   r�   ÚCoverage._warnÜ  sÊ   € ð ×"×"Ü"% d§k¡k×&BÑ&BÓ"CˆDÔà×&Ñ&Ó&àà�‰×Ñ˜cÔ"ÞØ�E˜˜D˜6 ¬¨	Ð1HÈÈÐOˆCØ�;‰;×Ñ˜e×$Ñ$Ø”b—i’i“k�] " S EÐ*ˆCÜ�Š�c¤OÀÒBæØÑ#Ð#Ð#Ø×Ñ×#Ñ# DÕ)ð rV   c                ó>   • U R                   (       a  [        U5        gg)z4Write a message to the user, if configured to do so.N)rv   Úprint)r“   rÙ   s     rK   Ú_messageÚCoverage._message÷  s   € à�>�>Ü�#�Jð rV   c                ó8   • U R                   R                  U5      $ )aÎ  Get an option from the configuration.

`option_name` is a colon-separated string indicating the section and
option name.  For example, the ``branch`` option in the ``[run]``
section of the config file would be indicated with `"run:branch"`.

Returns the value of the option.  The type depends on the option
selected.

As a special case, an `option_name` of ``"paths"`` will return an
dictionary with the entire ``[paths]`` section value.

.. versionadded:: 4.0

)rE   Ú
get_option)r“   Úoption_names     rK   rî   ÚCoverage.get_optionü  s   € ð  �{‰{×%Ñ% kÓ2Ð2rV   c                ó:   • U R                   R                  X5        g)aà  Set an option in the configuration.

`option_name` is a colon-separated string indicating the section and
option name.  For example, the ``branch`` option in the ``[run]``
section of the config file would be indicated with ``"run:branch"``.

`value` is the new value for the option.  This should be an
appropriate Python value.  For example, use True for booleans, not the
string ``"True"``.

As an example, calling:

.. code-block:: python

    cov.set_option("run:branch", True)

has the same effect as this configuration file:

.. code-block:: ini

    [run]
    branch = True

As a special case, an `option_name` of ``"paths"`` will replace the
entire ``[paths]`` section.  The value should be a dictionary.

.. versionadded:: 4.0

N)rE   Ú
set_option)r“   rï   Úvalues      rK   rò   ÚCoverage.set_option  s   € ð< 	�‰×Ñ˜{Õ2rV   c                óÊ  • U R                  5         U R                  b  U R                  R                  5         U R                  R                  =(       a8    [
        R                  R                  U R                  R                  5      (       + nU(       d  U R                  SS9  U R                  5         U(       d*  U R                  c   eU R                  R                  5         gg)z;Load previously-collected coverage data from the data file.N©Úsuffix)r¹   r   ÚresetrE   r^   rk   ÚpathÚexistsrZ   Ú
_init_datarÀ   r|   Úread)r“   Úshould_skips     rK   ÚloadÚCoverage.load.  s”   € à�
‰
ŒØ�?‰?Ñ&Ø�O‰O×!Ñ!Ô#Ø—k‘k×*Ñ*×X´2·7±7·>±>À$Ç+Á+×BWÑBWÓ3XÔ/XˆÞØ�O‰O 4ˆOÑ(Ø�‰ÔÞØ—:‘:Ñ)Ð)Ð)Ø�J‰J�O‰OÕð rV   c                óö  • U R                   R                  nSU;   a?  U R                   R                  c  [        S5      e[	        U R                   R                  S9  U R                   R
                  nU(       a  US:X  a  / nOUS:X  a  [        /nO[        SU< 35      eUR                  S U R                  R                   5       5        [        U5      n[        U R                  U R                  R                  S	5      (       a  U R                  OSU R                   USLU R                  S
9U l        [#        U R                   U R$                  U R&                  UU R(                  U R                   R*                  U R                  US9U l        U R.                  nU(       a  [1        U[2        5      (       d  SnODU R                   R4                  (       a'  Uc  SnO#[1        U[2        5      (       d  [7        U5      nOSnU R9                  U5        U R:                  c   eU R,                  R=                  U R:                  U R                   R>                  5        U R                  R@                  (       a¢  U R                   RB                  (       d‡  U R                  SRE                  SRG                  S U R                  R@                   5       5      U R,                  RI                  5       5      5        U R                  R@                   H
  nSUl%        M     [M        U R                   U R                  U R                  R                  S5      (       a  U R                  OSU R                   RN                  S9U l(        U R                  U RP                  l)        U R                   RT                  U RP                  l+        SU l,        [Z        R\                  " U R^                  5        U R                   R`                  (       a~  [b        Rd                  " 5       [b        Rf                  " 5       :H  nU(       aK  [h        Rj                  (       d5  [l        Rl                  " [l        Rn                  U Rp                  5      U l9        gggg)zInitialization for start()r«   Nz-multiprocessing requires a configuration file)ÚrcfileÚnoneÚtest_functionz*Don't understand dynamic_context setting: c              3  ó8   #   • U  H  oR                   v •  M     g 7f©N)Údynamic_context©Ú.0r¸   s     rK   Ú	<genexpr>Ú+Coverage._init_for_start.<locals>.<genexpr>L  s   é € ð !
Ú1P v×"Ö"Ò1Pùó   ‚Úcore)rY   rd   rE   Údynamic_contextsÚmetacov)r  rÐ   Úcheck_includeÚshould_start_contextÚfile_mapperr]   rY   rg   Tz1Plugin file tracers ({}) aren't supported with {}z, c              3  ó8   #   • U  H  oR                   v •  M     g 7fr  )rÊ   r  s     rK   r	  r
  z  s   é € ð ÚC]¸×4Ö4ÒC]ùr  FrÏ   )rE   rY   rd   Úinclude_namespace_packages):rE   rg   rX   r   r-   r  r   Úextendrz   Úcontext_switchersr   r   r�   rx   r®   r€   r~   r   rÔ   rÚ   r�   r]   r   rp   rj   rŠ   r^   r�   rû   r|   Úuse_datarh   Úfile_tracersÚsupports_pluginsÚformatÚjoinÚtracer_nameÚ_coverage_enabledr%   r  ry   rš   Úfile_disposition_classÚ
disp_classr‰   ÚatexitÚregisterÚ_atexitÚsigtermÚ	threadingÚcurrent_threadÚmain_threadr   ÚWINDOWSÚsignalÚSIGTERMÚ_on_sigtermr…   )r“   rg   Údyconr  r  r÷   r¸   Úis_mains           rK   Ú_init_for_startÚCoverage._init_for_start;  sU  € ð "&§¡×!8Ñ!8ˆØ Ó+Ø�{‰{×&Ñ&Ñ.Ü!Ð"QÓRÐRÜ!¨¯©×)@Ñ)@ÒAà—‘×+Ñ+ˆÞ˜ ›Ø "ÑØ�oÓ%Ü!CÐ DÑäÐ JÈ5É)ÐTÓUÐUà× Ñ ñ !
Ø15·±×1PÒ1Pó!
ô 	
ô  9Ð9JÓKÐäØ—‘Ø"&§+¡+×"4Ñ"4°V×"<Ñ"<�4—;’;À$Ø—;‘;Ø2¸$Ð>Ø—M‘Mñ
ˆŒ
ô $Ø—‘Ø×+Ñ+Ø×6Ñ6Ø!5Ø×)Ñ)Ø—;‘;×%Ñ%Ø—‘Ø#ñ	
ˆŒð ×,Ñ,ˆÞÜ˜f¤c×*Ñ*à�øØ�[‰[×!×!Ø‰~Ø‘Ü ¬×,Ñ,Ü˜f›�øàˆFà�‰˜Ôà�z‰zÑ%Ð%Ð%Ø�‰× Ñ  §¡¨T¯[©[×-@Ñ-@ÔAð �=‰=×%×%¨d¯j©j×.I×.IØ�J‰JØC×JÑJØ—I‘Iñ ØCGÇ=Á=×C]ÒC]óó ð —O‘O×/Ñ/Ó1ó	ôð Ÿ-™-×4Ô4�Ø+0�Ö(ñ 5ô  Ø—;‘;Ø—‘Ø"&§+¡+×"4Ñ"4°W×"=Ñ"=�4—;’;À4Ø'+§{¡{×'MÑ'Mñ	
ˆŒð !%§¡ˆ�‰ÔØ#'§:¡:×#DÑ#Dˆ�‰Ô ð $(ˆÔ ô 	�Š˜Ÿ™Ô%Ø�;‰;××Ü ×/Ò/Ó1´Y×5JÒ5JÓ5LÑLˆGÞœsŸ{Ÿ{ô %+§M¢MÜ—N‘NØ×$Ñ$ó%�Õ!ð	  +ˆwð rV   c                ó0  • U R                   c‰  [        U R                  R                  5        [	        U R                  R                  UU R
                  U R                  U R                  S9U l         U R                  R                  U R                   5        gg)z,Create a data file if we don't have one yet.N)Úbasenamer÷   rY   rd   Úno_disk)
r|   r*   rE   rZ   r   r�   rx   ri   r}   râ   )r“   r÷   s     rK   rû   ÚCoverage._init_data�  sp   € à�:‰:Ñô   §¡× 5Ñ 5Ô6Ü%ØŸ™×.Ñ.ØØ—Z‘ZØ—k‘kØŸ™ñˆDŒJð ×Ñ×&Ñ& t§z¡zÕ2ð rV   c                óT  • U R                  5         U R                  (       d  SU l        U R                  5         U R                  5         U R                  c   eU R
                  c   eU R
                  R                  5         U R                  (       a  U R
                  R                  5         U R                  (       a  U R                  5         [        X R                  U R                  5        U R                  R                  5         SU l        U R                   R#                  U 5        g)a™  Start measuring code coverage.

Coverage measurement is only collected in functions called after
:meth:`start` is invoked.  Statements in the same scope as
:meth:`start` won't be measured.

Once you invoke :meth:`start`, you must also call :meth:`stop`
eventually, or your process might not shut down cleanly.

The :meth:`collect` method is a context manager to handle both
starting and stopping collection.

TN)r¹   r‡   r,  rÀ   r   ry   Úwarn_conflicting_settingsrs   Úwarn_already_imported_filesrn   rþ   r.   rE   rx   Ústartrˆ   rP   râ   r¿   s    rK   r5  ÚCoverage.start­  sÌ   € ð 	�
‰
ŒØ×%×%Ø%)ˆDÔ"Ø× Ñ Ô"Ø�‰Ôà�‰Ñ*Ð*Ð*Ø�}‰}Ñ(Ð(Ð(ð 	�‰×/Ñ/Ô1ð ×(×(Ø�M‰M×5Ñ5Ô7à�?�?Ø�I‰IŒKä�dŸK™K¨¯©Ô5à�‰×ÑÔØˆŒØ�‰×Ñ˜tÕ$rV   c                ó   • U R                   (       a,  U R                   S   U L a  U R                   R                  5         U R                  (       a)  U R                  c   eU R                  R	                  5         SU l        g)zStop measuring code coverage.rR   NF)rP   Úpoprˆ   r   Ústopr¿   s    rK   r9  ÚCoverage.stopÕ  sX   € à�?�?Ø�‰˜rÑ" dÒ*Ø—‘×#Ñ#Ô%Ø�=�=Ø—?‘?Ñ.Ð.Ð.Ø�O‰O× Ñ Ô"Øˆ�rV   c              #  ó€   #   • U R                  5          Sv •  U R                  5         g! U R                  5         f = f7f)zYA context manager to start/stop coverage measurement collection.

.. versionadded:: 7.3

N)r5  r9  r¿   s    rK   ÚcollectÚCoverage.collectß  s*   é € ð 	�
‰
Œð	Ûà�I‰I�KøˆD�I‰I�Küs   ‚>”) ˜>©;»>c                ó†  • U R                   R                  S5      (       a7  U R                   R                  U S[        R                  " 5        SU < 35        U R
                  (       a  U R                  5         U R                  (       d  US:X  a  U R                  5         U R                   H  nUR                  SS9  M     g)zClean up on process shutdown.rª   z: pid: z, instance: r"  T)ÚforceN)rx   r®   r¯   rk   rã   rˆ   r9  ro   Úsaver}   Úclose)r“   ÚeventÚds      rK   r!  ÚCoverage._atexitì  s…   € à�;‰;×Ñ˜i×(Ñ(Ø�K‰K×Ñ   w¬r¯yªy«{¨m¸<ÈÁxÐPÔQØ�=�=Ø�I‰IŒKØ�?�?˜e yÓ0Ø�I‰IŒKØ×$Ô$ˆAØ�G‰G˜$ˆGÓò %rV   c                óô   • U R                  S5        [        R                  " [        R                  U R                  5        [        R
                  " [        R                  " 5       [        R                  5        g)zA handler for signal.SIGTERM.r"  N)r!  r'  r(  r…   rk   Úkillrã   )r“   Úsignum_unusedÚframe_unuseds      rK   r)  ÚCoverage._on_sigterm÷  s@   € à�‰�YÔô 	�Š”f—n‘n d×&7Ñ&7Ô8Ü
�Š”—	’	“œVŸ^™^Õ,rV   c                óD  • U R                  5         U R                  5         U R                  b  U R                  R                  5         U R	                  SS9  U R
                  c   eU R
                  R                  U R                  R                  S9  SU l        SU l	        g)z‹Erase previously collected coverage data.

This removes the in-memory data collected in this session as well as
discarding the data file.

Nrö   )r^   F)
r¹   rÀ   r   rø   rû   r|   ÚeraserE   r^   r‡   r¿   s    rK   rK  ÚCoverage.eraseÿ  s}   € ð 	�
‰
ŒØ�‰ÔØ�?‰?Ñ&Ø�O‰O×!Ñ!Ô#Ø�‰˜tˆÑ$Ø�z‰zÑ%Ð%Ð%Ø�
‰
×Ñ $§+¡+×"6Ñ"6ÐÑ7ØˆŒ
Ø!&ˆÕrV   c                óè   • U R                   (       d  [        S5      eU R                  c   eU R                  R                  (       a  U R	                  SSSS9  U R                  R                  U5        g)ab  Switch to a new dynamic context.

`new_context` is a string to use as the :ref:`dynamic context
<dynamic_contexts>` label for collected data.  If a :ref:`static
context <static_contexts>` is in use, the static and dynamic context
labels will be joined together with a pipe character.

Coverage collection must be started already.

.. versionadded:: 5.0

z.Cannot switch context, coverage is not startedNzConflicting dynamic contextszdynamic-conflictT)ræ   rç   )rˆ   r   r   r  r�   Úswitch_context)r“   Únew_contexts     rK   rN  ÚCoverage.switch_context  s[   € ð �}�}Ü#Ð$TÓUÐUà�‰Ñ*Ð*Ð*Ø�?‰?×/×/Ø�J‰JÐ5Ð<NÐUYˆJÑZà�‰×&Ñ& {Õ3rV   c                óx   • U R                  5         [        U R                  U S3/ 5        U R                  5         g)zClear the exclude list.Ú_listN)r¹   ÚsetattrrE   Ú_exclude_regex_stale©r“   Úwhichs     rK   Úclear_excludeÚCoverage.clear_exclude&  s-   € à�
‰
ŒÜ�—‘ ˜w e˜_¨bÔ1Ø×!Ñ!Õ#rV   c                ó˜   • U R                  5         [        U R                  U S35      nUR                  U5        U R	                  5         g)a4  Exclude source lines from execution consideration.

A number of lists of regular expressions are maintained.  Each list
selects lines that are treated differently during reporting.

`which` determines which list is modified.  The "exclude" list selects
lines that are not considered executable at all.  The "partial" list
indicates lines with branches that are not taken.

`regex` is a regular expression.  The regex is added to the specified
list.  If any of the regexes in the list is found in a line, the line
is marked for special treatment during reporting.

rR  N)r¹   ÚgetattrrE   râ   rT  )r“   ÚregexrV  Ú	excl_lists       rK   ÚexcludeÚCoverage.exclude,  s=   € ð 	�
‰
ŒÜ˜DŸK™K¨E¨7°%¨Ó9ˆ	Ø×Ñ˜ÔØ×!Ñ!Õ#rV   c                ó8   • U R                   R                  5         g)z=Drop all the compiled exclusion regexes, a list was modified.N)r„   Úclearr¿   s    rK   rT  ÚCoverage._exclude_regex_stale@  s   € à×Ñ×ÑÕ rV   c                ó    • XR                   ;  a1  [        U R                  U S35      n[        U5      U R                   U'   U R                   U   $ )z3Return a regex string for the given exclusion list.rR  )r„   rZ  rE   r,   )r“   rV  r\  s      rK   Ú_exclude_regexÚCoverage._exclude_regexD  sJ   € à×(Ñ(Ó(Ü §¡°¨w°e¨_Ó=ˆIÜ&0°Ó&;ˆD×Ñ˜UÑ#Ø×Ñ Ñ&Ð&rV   c                ó~   • U R                  5         [        [        [           [	        U R
                  U S35      5      $ )zžReturn a list of excluded regex strings.

`which` indicates which list is desired.  See :meth:`exclude` for the
lists that are available, and their meaning.

rR  )r¹   r
   ÚlistrŠ   rZ  rE   rU  s     rK   Úget_exclude_listÚCoverage.get_exclude_listK  s/   € ð 	�
‰
ŒÜ”Dœ‘Iœw t§{¡{°u°g¸U°OÓDÓEÐErV   c                óD   • U R                  5       nUR                  5         g)z2Save the collected coverage data to the data file.N)Úget_datar¯   )r“   Údatas     rK   r@  ÚCoverage.saveU  s   € à�}‰}‹ˆØ�
‰
�rV   c                óH  • [        U R                  R                  S5      (       a  U R                  R                  OSU R                  R
                  S9nU R                  R                  R                  5        H%  nUS   nUSS  H  nUR                  XC5        M     M'     U$ )z,Create a PathAliases from our configuration.ÚpathmapN)ÚdebugfnÚrelativer   é   )	r    rx   r®   r¯   rE   r°   ÚpathsÚvaluesrå   )r“   Úaliasesrr  ÚresultÚpatterns        rK   Ú_make_aliasesÚCoverage._make_aliasesZ  s‡   € äØ*.¯+©+×*<Ñ*<¸Y×*GÑ*G�T—[‘[×&Ò&ÈTØ—[‘[×/Ñ/ñ
ˆð —[‘[×&Ñ&×-Ñ-Ö/ˆEØ˜1‘XˆFØ   ›9�Ø—‘˜GÖ,ó %ñ 0ð ˆrV   c           	     ó   • U R                  5         U R                  SS9  U R                  5         U R                  5         U R                  c   e[        U R                  U R                  5       UUUU R                  S9  g)a  Combine together a number of similarly-named coverage data files.

All coverage data files whose name starts with `data_file` (from the
coverage() constructor) will be read, and combined together into the
current measurements.

`data_paths` is a list of files or directories from which data should
be combined. If no list is passed, then the data files from the
directory indicated by the current data file (probably the current
directory) will be combined.

If `strict` is true, then it is an error to attempt to combine when
there are no data files to combine.

If `keep` is true, then original input data files won't be deleted.

.. versionadded:: 4.0
    The `data_paths` parameter.

.. versionadded:: 4.3
    The `strict` parameter.

.. versionadded:: 5.5
    The `keep` parameter.
Nrö   )rt  Ú
data_pathsÚstrictÚkeepÚmessage)r¹   rû   rÀ   rj  r|   r   rw  rë   )r“   rz  r{  r|  s       rK   ÚcombineÚCoverage.combinef  si   € ð> 	�
‰
ŒØ�‰˜tˆÑ$Ø�‰ÔØ�‰Œà�z‰zÑ%Ð%Ð%ÜØ�J‰JØ×&Ñ&Ó(Ø!ØØØ—M‘Mó	
rV   c                ó�  • U R                  5         U R                  SS9  U R                  5         U R                  bp  U R                   H1  nUR
                  (       a  M  U R                  R                  U5        M3     U R                  R                  5       (       a  U R                  5         U R                  c   eU R                  $ )z«Get the collected data.

Also warn about various problems collecting data.

Returns a :class:`coverage.CoverageData`, the collected coverage data.

.. versionadded:: 4.0

Nrö   )
r¹   rû   rÀ   r   rz   r  Úplugin_was_disabledÚ
flush_dataÚ_post_save_workr|   r·   s     rK   rj  ÚCoverage.get_data”  s–   € ð 	�
‰
ŒØ�‰˜tˆÑ$Ø�‰Ôà�?‰?Ñ&ØŸ-œ-�Ø×/×/Ñ/Ø—O‘O×7Ñ7¸Ö?ñ (ð �‰×)Ñ)×+Ñ+Ø×$Ñ$Ô&à�z‰zÑ%Ð%Ð%Ø�z‰zÐrV   c                ó$  • U R                   c   eU R                  c   eU R                  (       a  U R                  R                  5         U R                   (       d!  U R                  (       a  U R                  SSS9  [        R                  " [        5      nU R                  R                  5        H)  u  p#U R                  U5      nX   R                  U5        M+     UR                  5        H   u  p4U R                   R                  XC5        M"     g)zŒAfter saving data, look for warnings, post-work, etc.

Warn about things that should have happened but didn't.
Look for un-executed files.

NzNo data was collected.zno-data-collected)ræ   )r|   ry   rr   Úwarn_unimported_sourcerq   r�   ÚcollectionsÚdefaultdictrf  Úfind_possibly_unexecuted_filesr�   râ   ÚitemsÚtouch_files)r“   Ú
file_pathsÚ	file_pathÚplugin_namerr  s        rK   rƒ  ÚCoverage._post_save_work­  sÚ   € ð �z‰zÑ%Ð%Ð%Ø�}‰}Ñ(Ð(Ð(ð ×'×'Ø�M‰M×0Ñ0Ô2ð �z�z˜d×0×0Ø�J‰JÐ/Ð6IˆJÑJô !×,Ò,¬TÓ2ˆ
Ø&*§m¡m×&RÑ&RÖ&TÑ"ˆIØ×)Ñ)¨)Ó4ˆIØÑ#×*Ñ*¨9Ö5ñ 'Uð #-×"2Ñ"2Ö"4ÑˆKØ�J‰J×"Ñ" 5Ö6ò #5rV   c                ó4   • U R                  U5      u  p#pEnX#XV4$ )z:Like `analysis2` but doesn't return excluded line numbers.)Ú	analysis2)r“   ÚmorfÚfÚsÚ_ÚmÚmfs          rK   ÚanalysisÚCoverage.analysisÊ  s    € àŸ™¨Ó-‰ˆˆa�BØ�Qˆ{ÐrV   c                óÔ   • U R                  U5      nUR                  [        UR                  5      [        UR                  5      [        UR
                  5      UR                  5       4$ )aï  Analyze a module.

`morf` is a module or a file name.  It will be analyzed to determine
its coverage statistics.  The return value is a 5-tuple:

* The file name for the module.
* A list of line numbers of executable statements.
* A list of line numbers of excluded statements.
* A list of line numbers of statements not run (missing from
  execution).
* A readable formatted string of the missing line numbers.

The analysis uses the source file itself and the current measured
coverage data.

)Ú_analyzerÑ   ÚsortedÚ
statementsÚexcludedÚmissingÚmissing_formatted©r“   r’  r˜  s      rK   r‘  ÚCoverage.analysis2Ï  s[   € ð( —=‘= Ó&ˆà×ÑÜ�8×&Ñ&Ó'Ü�8×$Ñ$Ó%Ü�8×#Ñ#Ó$Ø×&Ñ&Ó(ð
ð 	
rV   rq  )Úmaxsizec                óú   • U R                  5         U R                  5         U R                  5       nU R                  U5      nU R	                  UR
                  5      n[        X R                  R                  X45      $ )z+Analyze a module or file.  Private for now.)	r¹   rÀ   rj  Ú_get_file_reporterr�   rÑ   r6   rE   Ú	precision)r“   r’  rk  Úfile_reporterrÑ   s        rK   r›  ÚCoverage._analyzeì  s_   € ð 	�
‰
ŒØ�‰Ôà�}‰}‹ˆØ×/Ñ/°Ó5ˆØ×$Ñ$ ]×%;Ñ%;Ó<ˆÜ*¨4·±×1FÑ1FÈÓ`Ð`rV   c                óD   • U R                  U5      nUR                  5       $ )z¯Get branch statistics about a module.

`morf` is a module or a file name.

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

.. versionadded:: 7.7

)r›  Úbranch_statsr¡  s      rK   rª  ÚCoverage.branch_stats÷  s!   € ð —=‘= Ó&ˆØ×$Ñ$Ó&Ð&rV   c                óÂ  • U R                   c   eSnSn[        U[        5      (       aŽ  U R                  U5      nU R                   R	                  U5      nU(       a[  U R
                  R                  U5      nU(       a9  UR                  U5      nUc%  [        SR                  UR                  U5      5      eUS:X  a  [        X5      n[        U[        5      (       d   eU$ )z-Get a FileReporter for a module or file name.NÚpythonz5Plugin {!r} did not provide a file reporter for {!r}.)r|   rj   rŠ   r�   Úfile_tracerrz   Úgetr§  r   r  rÊ   r2   r/   )r“   r’  r¸   r§  Úmapped_morfrŽ  s         rK   r¥  ÚCoverage._get_file_reporter  sÓ   € ð �z‰zÑ%Ð%Ð%ØˆØ,4ˆä�dœC× Ñ Ø×+Ñ+¨DÓ1ˆKØŸ*™*×0Ñ0°Ó=ˆKÞØŸ™×*Ñ*¨;Ó7�æØ$*×$8Ñ$8¸Ó$E�MØ$Ñ,Ü)ØS×ZÑZØ &× <Ñ <Ø $óóð ð ˜HÓ$Ü.¨tÓ:ˆMä˜-¬×6Ñ6Ð6Ð6ØÐrV   c                ó  • U R                   c   eU(       d  U R                   R                  5       n[        U[        [        [
        45      (       d  U/n[        US S9nU Vs/ s H  o R                  U5      U4PM     sn$ s  snf )ag  Get FileReporters for a list of modules or file names.

For each module or file name in `morfs`, find a FileReporter.  Return
a list pairing FileReporters with the morfs.

If `morfs` is a single module or file name, this returns a list of one
FileReporter.  If `morfs` is empty or None, then the list of all files
measured is used to find the FileReporters.

c                óH   • [        U [        5      (       a  U $ U R                  $ r  )rj   rŠ   r¢   )r–  s    rK   Ú<lambda>Ú.Coverage._get_file_reporters.<locals>.<lambda>8  s   € ´¸A¼s×1CÑ1C¨AÐ,SÈÏÉÐ,SrV   )Úkey)r|   Úmeasured_filesrj   rf  Útuplert   rœ  r¥  )r“   Úmorfsr’  s      rK   Ú_get_file_reportersÚCoverage._get_file_reporters"  sy   € ð �z‰zÑ%Ð%Ð%ÞØ—J‘J×-Ñ-Ó/ˆEô ˜%¤$¬¬sÐ!3×4Ñ4Ø�GˆEä�uÑ"SÑTˆÙBGÓHÂ%¸$×(Ñ(¨Ó.°Ó5Á%ÑHÐHùÒHs   Á#Bc                ó:  • U R                   R                  (       a€  [        U R                  U R                  SS9nU R
                  b2  UR                  U R
                  U R                  5       R                  S9  Xl        U R                  R                  U5        gg)zARe-map data before reporting, to get implicit "combine" behavior.T)rY   rd   r0  N)Úmap_path)rE   rr  r   r�   rx   r|   Úupdaterw  Úmapr}   râ   )r“   Úmapped_datas     rK   Ú_prepare_data_for_reportingÚ$Coverage._prepare_data_for_reporting;  st   € à�;‰;××Ü&¨D¯J©J¸d¿k¹kÐSWÑXˆKØ�z‰zÑ%Ø×"Ñ" 4§:¡:¸×8JÑ8JÓ8L×8PÑ8PÐ"ÑQØ$ŒJØ×Ñ×&Ñ& {Õ3ð rV   c                ó²   • U R                  5         [        U UUUUUUU	U
UUS9   [        U 5      nUR                  XS9sSSS5        $ ! , (       d  f       g= f)a  Write a textual summary report to `file`.

Each module in `morfs` is listed, with counts of statements, executed
statements, missing statements, and a list of lines missed.

If `show_missing` is true, then details of which lines or branches are
missing will be included in the report.  If `ignore_errors` is true,
then a failure while reporting a single file will not stop the entire
report.

`file` is a file-like object, suitable for writing.

`output_format` determines the format, either "text" (the default),
"markdown", or "total".

`include` is a list of file name patterns.  Files that match will be
included in the report. Files matching `omit` will not be included in
the report.

If `skip_covered` is true, don't report on files with 100% coverage.

If `skip_empty` is true, don't report on empty files (those that have
no statements).

`contexts` is a list of regular expression strings.  Only data from
:ref:`dynamic contexts <dynamic_contexts>` that match one of those
expressions (using :func:`re.search <python:re.search>`) will be
included in the report.

`precision` is the number of digits to display after the decimal
point for percentages.

All of the arguments default to the settings read from the
:ref:`configuration file <config>`.

Returns a float, the total percentage covered.

.. versionadded:: 4.0
    The `skip_covered` parameter.

.. versionadded:: 5.0
    The `contexts` and `skip_empty` parameters.

.. versionadded:: 5.2
    The `precision` parameter.

.. versionadded:: 7.0
    The `format` parameter.

)
Úignore_errorsre   rf   Úshow_missingÚskip_coveredÚreport_contextsÚ
skip_emptyr¦  Úsortr  )ÚoutfileN)rÁ  rL   r3   Úreport)r“   r¹  rÅ  rÄ  Úfiler–   r—   rÆ  ÚcontextsrÈ  r¦  rÉ  Úoutput_formatÚreporters                 rK   rË  ÚCoverage.reportD  sd   € ðB 	×(Ñ(Ô*ÜØØ'ØØ"Ø%Ø%Ø$Ø!ØØØ ó
ô ' tÓ,ˆHØ—?‘? 5�?Ð7÷
÷ 
÷ 
ús   ¤AÁ
Ac                ó¦   • U R                  5         [        U UUUUS9   [        U 5      nUR                  XS9  SSS5        g! , (       d  f       g= f)aJ  Annotate a list of modules.

Each module in `morfs` is annotated.  The source is written to a new
file, named with a ",cover" suffix, with each line prefixed with a
marker to indicate the coverage of the line.  Covered lines have ">",
excluded lines have "-", and missing lines have "!".

See :meth:`report` for other arguments.

)rÄ  re   rf   rÇ  )Ú	directoryN)rÁ  rL   r   rË  )r“   r¹  rÒ  rÄ  r–   r—   rÍ  rÏ  s           rK   ÚannotateÚCoverage.annotate–  sQ   € ð& 	×(Ñ(Ô*ÜØØ'ØØ"Ø$ó
ô (¨Ó-ˆHØ�O‰O˜EˆOÑ7÷
÷ 
ö 
ús   žAÁ
Ac                ó¸   • U R                  5         [        U UUUUUUUU	U
UUS9   [        U 5      nUR                  U5      sSSS5        $ ! , (       d  f       g= f)aÍ  Generate an HTML report.

The HTML is written to `directory`.  The file "index.html" is the
overview starting point, with links to more detailed pages for
individual modules.

`extra_css` is a path to a file of other CSS to apply on the page.
It will be copied into the HTML directory.

`title` is a text string (not HTML) to use as the title of the HTML
report.

See :meth:`report` for other arguments.

Returns a float, the total percentage covered.

.. note::

    The HTML report files are generated incrementally based on the
    source files and coverage results. If you modify the report files,
    the changes will not be considered.  You should be careful about
    changing the files in the report folder.

)rÄ  re   rf   Úhtml_dirÚ	extra_cssÚ
html_titleÚhtml_skip_coveredÚshow_contextsrÇ  Úhtml_skip_emptyr¦  N)rÁ  rL   r$   rË  )r“   r¹  rÒ  rÄ  r–   r—   r×  ÚtitlerÆ  rÚ  rÍ  rÈ  r¦  rÏ  s                 rK   Úhtml_reportÚCoverage.html_report´  se   € ðN 	×(Ñ(Ô*ÜØØ'ØØ"ØØØØ*Ø'Ø$Ø&Øó
ô $ DÓ)ˆHØ—?‘? 5Ó)÷
÷ 
÷ 
ús   ¥AÁ
Ac           
     óÞ   • U R                  5         [        U UUUUUUS9   [        U R                  R                  [        U 5      XR                  5      sSSS5        $ ! , (       d  f       g= f)a2  Generate an XML report of coverage results.

The report is compatible with Cobertura reports.

Each module in `morfs` is included in the report.  `outfile` is the
path to write the file to, "-" will write to stdout.

See :meth:`report` for other arguments.

Returns a float, the total percentage covered.

)rÄ  re   rf   Ú
xml_outputrÇ  rÈ  N)rÁ  rL   r4   rE   rà  rA   rë   )r“   r¹  rÊ  rÄ  r–   r—   rÍ  rÈ  s           rK   Ú
xml_reportÚCoverage.xml_reportí  s`   € ð, 	×(Ñ(Ô*ÜØØ'ØØ"ØØ$Ø!ó
ô ! §¡×!7Ñ!7¼ÀTÓ9JÈE×S`ÑS`Óa÷
÷ 
÷ 
ús    4AÁ
A,c	                óà   • U R                  5         [        U UUUUUUUS9   [        U R                  R                  [        U 5      XR                  5      sSSS5        $ ! , (       d  f       g= f)ae  Generate a JSON report of coverage results.

Each module in `morfs` is included in the report.  `outfile` is the
path to write the file to, "-" will write to stdout.

`pretty_print` is a boolean, whether to pretty-print the JSON output or not.

See :meth:`report` for other arguments.

Returns a float, the total percentage covered.

.. versionadded:: 5.0

)rÄ  re   rf   Újson_outputrÇ  Újson_pretty_printÚjson_show_contextsN)rÁ  rL   r4   rE   rä  r&   rë   )	r“   r¹  rÊ  rÄ  r–   r—   rÍ  Úpretty_printrÚ  s	            rK   Újson_reportÚCoverage.json_report  sc   € ð2 	×(Ñ(Ô*ÜØØ'ØØ"ØØ$Ø*Ø,ó	
ô ! §¡×!8Ñ!8¼,ÀtÓ:LÈe×UbÑUbÓc÷	
÷ 	
÷ 	
ús   ¡4AÁ
A-c           	     óÜ   • U R                  5         [        U UUUUUS9   [        U R                  R                  [        U 5      XR                  5      sSSS5        $ ! , (       d  f       g= f)zæGenerate an LCOV report of coverage results.

Each module in `morfs` is included in the report. `outfile` is the
path to write the file to, "-" will write to stdout.

See :meth:`report` for other arguments.

.. versionadded:: 6.3
)rÄ  re   rf   Úlcov_outputrÇ  N)rÁ  rL   r4   rE   rë  r'   rë   )r“   r¹  rÊ  rÄ  r–   r—   rÍ  s          rK   Úlcov_reportÚCoverage.lcov_report5  s]   € ð$ 	×(Ñ(Ô*ÜØØ'ØØ"ØØ$ó
ô ! §¡×!8Ñ!8¼,ÀtÓ:LÈe×UbÑUbÓc÷
÷ 
÷ 
ús   Ÿ4AÁ
A+c           !     óò  • SSK nSSKnSSKnSSKnU R	                  5         U R                  5         S+S jn/ nUR                  5        H&  nUR                  UR                  U S35      5        M(     SUR                  4SUR                  4SU R                  b  U R                  R                  5       OS4S	[        (       a	  S
[         3OS4SU" U R                  R                  5      4SU" U R                  R                  5      4SU" U R                  R                   5      4SU R"                  R$                  4SU R"                  R&                  4SU R"                  R(                  4SU R"                  R*                  (       a  [-        U R"                  R*                  5      OS4SU R.                  b  U R.                  R1                  5       OS4S[2        R4                  R7                  SS5      4SUR                  5       4SUR9                  5       4S[-        UR;                  5       5      4S[=        [2        SS 5      " 5       4S[2        R>                  4SU4S[2        R@                  " 5       4S [2        RB                  " 5       4S![D        RF                  " 5       4S"[D        RH                  " 5       4S#[2        RJ                  4S$[M        [D        RN                  5       VV	s/ s H  u  p‰U S%U	 3PM     sn	n4S&S'RQ                  [=        [2        S(S/5      5      4S)[R        RR                  RU                  5       S* 4/n
U RV                  b)  U
R                  U RV                  RY                  5       5        U
$ s  sn	nf ),zAReturn a list of (key, value) pairs showing internal information.r   Nc                ó‚   • / nU  H6  nUR                   nUR                  (       d  US-  nUR                  U5        M8     U$ )z7Make an entry for the sys_info from a list of plug-ins.z (disabled))rÊ   r  râ   )rš   Úentriesr¸   Úentrys       rK   Úplugin_infoÚ&Coverage.sys_info.<locals>.plugin_info]  sB   € àˆGÛ!�Ø×4Ñ4�Ø×/×/Ø˜]Ñ*�EØ—‘˜uÖ%ñ	 "ð
 ˆNrV   z
/*cov*.pthÚcoverage_versionÚcoverage_moduler  rž   ÚCTracerzavailable from Úunavailablezplugins.file_tracerszplugins.configurerszplugins.context_switchersÚconfigs_attemptedÚconfigs_readrX   Úconfig_contentsrZ   r­  Ú
Ú ÚplatformÚimplementationÚbuildÚgil_enabledÚ_is_gil_enabledc                 ó   • g)NTrD   rD   rV   rK   r´  Ú#Coverage.sys_info.<locals>.<lambda>  s   € ÀDrV   Ú
executableÚ	pth_filesÚdef_encodingÚfs_encodingrÝ   Úcwdrù   Úenvironmentz = Úcommand_lineÚ Úargvr¶   z%Y-%m-%d %H:%M:%S)rš   z	list[Any]Úreturnú	list[str])-Úglobrý  ÚsiteÚcoverager¹   rÀ   Úgetsitepackagesr  Ú__version__Ú__file__r   r  r   rz   r  r³   r  rE   Úconfig_files_attemptedÚconfig_files_readrX   Ú_config_contentsr£   r|   Údata_filenamerÃ   ÚversionÚreplaceÚpython_implementationÚpython_buildrZ  r  ÚgetdefaultencodingÚgetfilesystemencodingrk   rã   Úgetcwdrù   r   Úenvironr  ÚdatetimeÚnowry   rÉ   )r“   r  rý  r  Úcovmodrò  r  ÚspdirÚkÚvÚinfos              rK   rÉ   ÚCoverage.sys_infoR  sà  € ó 	ÛÛÛ!à�
‰
ŒØ�‰Ôô	ð ˆ	Ø×)Ñ)Ö+ˆEØ×Ñ˜TŸY™Y¨%¨°
Ð';Ó<Ö=ñ ,ð   ×!3Ñ!3Ð4Ø §¡Ð0Ø°d·o±oÑ6Q�T—_‘_×0Ñ0Ô2ÐW_Ð`Ø¿LºL˜/¬,¨Ñ8ÈmÐ\Ø#¡[°·±×1KÑ1KÓ%LÐMØ"¡K°·±×0IÑ0IÓ$JÐKØ(©+°d·m±m×6UÑ6UÓ*VÐWØ  $§+¡+×"DÑ"DÐEØ˜TŸ[™[×:Ñ:Ð;Ø˜DŸK™K×3Ñ3Ð4à!Ø6:·k±k×6R×6R”�T—[‘[×1Ñ1Ô2ÐX`ðð ¸¿
¹
Ñ8N˜$Ÿ*™*×2Ñ2Ô4ÐT\Ð]Ø”s—{‘{×*Ñ*¨4°Ó4Ð5Ø˜×*Ñ*Ó,Ð-Ø˜x×=Ñ=Ó?Ð@Ø”d˜8×0Ñ0Ó2Ó3Ð4ØœG¤CÐ):¹LÔIÓKÐLØœ3Ÿ>™>Ð*Ø˜)Ð$ØœS×3Ò3Ó5Ð6ØœC×5Ò5Ó7Ð8Ø”B—I’I“KÐ Ø”B—I’I“KÐ Ø”S—X‘XÐØÔ6RÔSU×S]ÑS]Ô6^Ô_Ò6^©d¨a ˜s # a S›\Ñ6^Ò_Ð`Ø˜SŸX™X¤g¬c°6¸H¸:Ó&FÓGÐHØœ×)Ñ)×-Ñ-Ó/Ð0AÐBÐDð=
ˆðB �=‰=Ñ$Ø�K‰K˜Ÿ™×.Ñ.Ó0Ô1àˆùó `s   ËM38)rn   ro   r   r~   r|   r‚   rp   r}   rx   rm   r„   r�   r†   r‡   ry   rv   r€   ri   ru   r…   r{   rz   rƒ   r‰   rˆ   rq   rs   rr   rw   rE   )r  úCoverage | None)&rZ   zFilePath | DefaultValue | Noner”   ústr | bool | Noner[   úbool | Noner•   r�   r\   r+  r]   r+  rX   zFilePath | boolr_   úIterable[str] | Noner`   r,  ra   r,  r–   ústr | Iterable[str] | Noner—   r-  rd   r,  rg   r-  r˜   r�   rh   ú
str | Noner™   r�   rš   z$Iterable[Callable[..., None]] | Noner  ÚNone)r  rŠ   ©r  r/  )rÑ   rŠ   rÒ   r   r  r<   )rÑ   rŠ   rÒ   r   r  r�   )NF)rÙ   rŠ   ræ   r.  rç   r�   r  r/  )rÙ   rŠ   r  r/  )rï   rŠ   r  zTConfigValueOut | None)rï   rŠ   ró   z!TConfigValueIn | TConfigSectionInr  r/  )r÷   r*  r  r/  )r  úIterator[None])r  )rB  rŠ   r  r/  )rG  rµ   rH  zFrameType | Noner  r/  )rO  rŠ   r  r/  )r]  )rV  rŠ   r  r/  )r[  rŠ   rV  rŠ   r  r/  )rV  rŠ   r  rŠ   )rV  rŠ   r  r  )r  r    )NFF)rz  r,  r{  r�   r|  r�   r  r/  )r  r   )r’  r>   r  z-tuple[str, list[TLineNo], list[TLineNo], str])r’  r>   r  z<tuple[str, list[TLineNo], list[TLineNo], list[TLineNo], str])r’  r>   r  r5   )r’  r>   r  zdict[TLineNo, tuple[int, int]])r’  r>   r  r/   r  )r¹  r?   r  z list[tuple[FileReporter, TMorf]])NNNNNNNNNNNN)r¹  r?   rÅ  r+  rÄ  r+  rÌ  zIO[str] | Noner–   ústr | list[str] | Noner—   r2  rÆ  r+  rÍ  úlist[str] | NonerÈ  r+  r¦  ú
int | NonerÉ  r.  rÎ  r.  r  Úfloat)NNNNNN)r¹  r?   rÒ  r.  rÄ  r+  r–   r2  r—   r2  rÍ  r3  r  r/  )r¹  r?   rÒ  r.  rÄ  r+  r–   r2  r—   r2  r×  r.  rÜ  r.  rÆ  r+  rÚ  r+  rÍ  r3  rÈ  r+  r¦  r4  r  r5  )NNNNNNN)r¹  r?   rÊ  r.  rÄ  r+  r–   r2  r—   r2  rÍ  r3  rÈ  r+  r  r5  )NNNNNNNN)r¹  r?   rÊ  r.  rÄ  r+  r–   r2  r—   r2  rÍ  r3  rç  r+  rÚ  r+  r  r5  )r¹  r?   rÊ  r.  rÄ  r+  r–   r2  r—   r2  rÍ  r3  r  r5  )r  zIterable[tuple[str, Any]])<r¢   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__rP   Ú__annotations__ÚclassmethodrT   ÚDEFAULT_DATAFILEr›   r§   r¹   rÀ   r¼   rÔ   rÚ   r�   rë   rî   rò   rþ   r,  rû   r5  r9  Ú
contextlibÚcontextmanagerr<  r!  r)  rK  rN  rW  r]  rT  rc  rg  r@  rw  r~  rj  rƒ  r˜  r‘  Ú	functoolsÚ	lru_cacher›  rª  r¥  rº  rÁ  rË  rÓ  rÝ  rá  rè  rì  rÉ   Ú__static_attributes__rD   rV   rK   rB   rB   b   sÃ  ‡ ñð8 "$€J�Ó#àóó ðð 5EØ)-Ø#'ØØ!Ø"Ø'+Ø'+Ø,0Ø,0Ø+/Ø.2Ø&*Ø26Ø"'Ø"ØØ8<ð'Q/à1ðQ/ð 'ðQ/ð !ð	Q/ð
 ðQ/ð ðQ/ð ðQ/ð %ðQ/ð %ðQ/ð *ðQ/ð *ðQ/ð )ðQ/ð ,ðQ/ð $ðQ/ð 0ðQ/ð   ð!Q/ð" ð#Q/ð$ ð%Q/ð& 6ð'Q/ð( 
õ)Q/ôf	
ô+HôZ	Sô?ô4
ôö"*ô6ô
3ô$3ô@ô`ôD3ô &%ôPð ×Ñó
ó ð
ö	 ô-ô'ô"4ö,$ö$ô(!ô'öFôô

ð ,0ØØð	,
à(ð,
ð ð,
ð ð	,
ð
 
õ,
ô\ô27ô:ð

àð
ð 
Fô
ð: ×Ò Ñ#óaó $ðaô'ð ×Ò Ñ#óó $ðð< ðIàðIð 
*õIô24ð Ø$(Ø%)Ø#Ø'+Ø*.Ø$(Ø%)Ø"&Ø $ØØ$(ðP8àðP8ð "ðP8ð #ð	P8ð
 ðP8ð %ðP8ð (ðP8ð "ðP8ð #ðP8ð  ðP8ð ðP8ð ðP8ð "ðP8ð 
õP8ðh Ø $Ø%)Ø'+Ø*.Ø%)ð8àð8ð ð8ð #ð	8ð
 %ð8ð (ð8ð #ð8ð 
õ8ð@ Ø $Ø%)Ø'+Ø*.Ø $Ø Ø$(Ø%)Ø%)Ø"&Ø $ð7*àð7*ð ð7*ð #ð	7*ð
 %ð7*ð (ð7*ð ð7*ð ð7*ð "ð7*ð #ð7*ð #ð7*ð  ð7*ð ð7*ð 
õ7*ðv Ø"Ø%)Ø'+Ø*.Ø%)Ø"&ð bàð bð ð bð #ð	 bð
 %ð bð (ð bð #ð bð  ð bð 
õ bðH Ø"Ø%)Ø'+Ø*.Ø%)Ø$(Ø%)ð$dàð$dð ð$dð #ð	$dð
 %ð$dð (ð$dð #ð$dð "ð$dð #ð$dð 
õ$dðP Ø"Ø%)Ø'+Ø*.Ø%)ðdàðdð ðdð #ð	dð
 %ðdð (ðdð #ðdð 
õd÷:=rV   ÚCOVERAGE_DEBUG_CALLS)Údecorate_methodsÚ
show_callsT)Ú	show_argsrj  )ÚbutnotFÚdefault©r?  ræ   c                ó@  • U (       d  [        [        S5      (       a  g[        R                  " S5      n[        R                  " S5      nUb
  [        U-   nOUb  UnOg[        US9nU[        l        SUl        SUl        SUl	        SUl
        UR                  5         U$ )aE  Call this at Python start-up to perhaps measure coverage.

Coverage is started if one of these environment variables is defined:

- COVERAGE_PROCESS_START: the config file to use.
- COVERAGE_PROCESS_CONFIG: the config data to use, a string produced by
  CoverageConfig.serialize, prefixed by ":data:".

If one of these is defined, it's used to get the coverage configuration,
and coverage is started.

For details, see https://coverage.readthedocs.io/en/latest/subprocess.html.

Returns the :class:`Coverage` instance that was started, or None if it was
not started by this call.

r  NÚCOVERAGE_PROCESS_CONFIGÚCOVERAGE_PROCESS_START)rX   FT)ÚhasattrÚprocess_startuprk   ÚgetenvrŒ   rB   r  rq   rr   rs   ro   r5  )r?  ræ   Úconfig_dataÚcpsrX   rH   s         rK   rM  rM  �  s—   € öJ ”Wœ_¨j×9Ñ9ð ô
 —)’)Ð5Ó6€KÜ
�)Š)Ð,Ó
-€CØÑÜ(¨;Ñ6‰Ø	‰Ø‰ð ä
˜{Ñ
+€CØ"„OÔØ€CÔØ"'€CÔØ#(€CÔ Ø€C„NØ‡I�I„Kà€JrV   c                 ón   • [         R                  5       =n (       a  U R                  5         [        SSS9  g)z<Used by patch=fork in the child process to restart coverage.TÚforkrH  N)rB   rT   r9  rM  )rH   s    rK   Ú_after_fork_in_childrS  ß  s)   € ä×ÑÓ Ð €sÕ Ø�‰Œ
Ü˜$ VÓ,rV   c                 ó<   • [        [        SS5      n U b  SU l        gg)z7Stop any subprocess auto-measurement from writing data.r  NF)rZ  rM  ro   )Úauto_created_coverages    rK   r’   r’   æ  s%   € ä#¤O°ZÀÓFÐØÑ(Ø+0ÐÕ(ð )rV   )rH   rB   rI   r:   r  r1  )r?  r�   ræ   rŠ   r  r)  r0  )xr9  Ú
__future__r   r  r‡  r=  r!  r?  rk   Úos.pathr'  rÃ   r#  r¶   rä   Úcollections.abcr   r   r   Útypesr   Útypingr   r	   r
   r  r   Úcoverage.annotater   Úcoverage.collectorr   Úcoverage.configr   r   Úcoverage.contextr   r   Úcoverage.corer   r   Úcoverage.datar   r   Úcoverage.debugr   r   r   r   r   Úcoverage.dispositionr   Úcoverage.exceptionsr   r   r   r   Úcoverage.filesr    r!   r"   r#   Úcoverage.htmlr$   Úcoverage.inoroutr%   Úcoverage.jsonreportr&   Úcoverage.lcovreportr'   Úcoverage.miscr(   r)   r*   r+   r,   Úcoverage.multiprocr-   Úcoverage.patchr.   Úcoverage.pluginr/   Úcoverage.plugin_supportr0   r1   Úcoverage.pythonr2   Úcoverage.reportr3   Úcoverage.report_corer4   Úcoverage.resultsr5   r6   Úcoverage.typesr7   r8   r9   r:   r;   r<   r=   r>   r?   Úcoverage.versionr@   Úcoverage.xmlreportrA   r>  rL   r<  Ú_DEFAULT_DATAFILErŒ   rB   rµ   rN  rC  rD  rM  rS  r’   rD   rV   rK   Ú<module>rv     st  ðñ -å "ã Û Û Û Û Û 	Û Û Û 
Û Û Û ß 8Ñ 8Ý ß  Ñ  å Ý .Ý (ß @ß Zß ,ß =÷õ õ 7ß \Ó \ß [Ó [Ý &Ý $Ý ,Ý ,÷õ õ 5Ý (Ý (ß :Ý .Ý +Ý .ß B÷
÷ 
õ 
õ %Ý *á�BÓ€ð ×Ñó%ó ð%ñ   	Ó*Ð Ø$Ð ØÐ ômˆ}ô mñd) €r‡y‚yÐ'¨Ó+×,Ñ,ß;áÙ˜TÑ"Øˆ|òð ó€Hð Øñ?àð?ð ð?ð õ	?ôD-õ1rV   