9,PRdZddlmZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlmZddlmZmZmZmZmZmZmZmZmZmZmZddlmZddlmZddl m!Z!m"Z"dd l#m$Z$m%Z%dd l&m'Z'm(Z(dd l)m*Z*m+Z+dd l,m-Z-m.Z.m/Z/m0Z0m1Z1dd l2m3Z3ddl4m5Z5m6Z6m7Z7m8Z8ddl9m:Z:m;Z;mm?Z?ddl@mAZAddlBmCZCddlDmEZEddlFmGZGmHZHddlFmIZImJZJmKZKddlLmMZMddlNmOZOddlPmQZQddlRmSZSddlTmUZUddlVmWZWddlXmYZYddlZm[Z[m\Z\m]Z]m^Z^m_Z_m`Z`maZambZbddlcmdZdeKeZejed2d%ZfeId&ZgegZhGd'd e\Ziejejkld(dr)dd)l,mmZmmnZnemend*+d,g-eiZid3d/Zod4d1ZpdS)5z#Core control stuff for coverage.py.) annotationsN) FrameType) castAnyCallableDictIOIterableIteratorListOptionalTupleUnion)env)AnnotateReporter) Collector HAS_CTRACER)CoverageConfigread_coverage_config)"should_start_context_test_functioncombine_context_switchers) CoverageDatacombine_parallel_data) DebugControl NoDebugging short_stackwrite_formatted_inforelevant_environment_display)disposition_debug_msg) ConfigErrorCoverageExceptionCoverageWarning PluginError) PathAliasesabs_filerelative_filenameset_relative_directory) HtmlReporter)InOrOut) JsonReporter) LcovReporter) bool_or_none join_regex) DefaultValueensure_dir_for_fileisolate_module)patch_multiprocessing) FileReporter)Plugins)PythonFileReporter)SummaryReporter) render_report)Analysis)FilePath TConfigurableTConfigSectionInTConfigValueInTConfigValueOutTFileDispositionTLineNoTMorf) XmlReportercovCoveragekwargsr;returnIterator[None]c+K|j}|j|_ |jjdi|dV||_dS#||_wxYw)zTemporarily 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)configcopy from_args)rArCoriginal_configs /srv/buildsys-work-dir/castor/build_node/builder-2/WGSG1/unpkd_srcs/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/coverage/control.pyoverride_configrM;sijO""CJ% &&v&&& $ _ $$$$s A AMISSINGc2eZdZUdZgZded<eddZedddddd dddddddddfdd#Z dd$Z dd%Z dd&Z dd,Z dd-Zddd1Zdd2Zdd5Zdd8Zdd9Zdd:Zdd<Zdd=Zdd>ZdddAZddFZddGZddIZdddLZdddNZddOZddPZdddRZ ddSZ!ddUZ" dddYZ#dd[Z$dd\Z%dd`Z&ddbZ'ddfZ(ddhZ)dddlZ*ddmZ+ ddd|Z, ddd~Z- dddZ. dddZ/ dddZ0 dddZ1ddZ2dS)rBaProgrammatic access to coverage.py. To use:: from coverage import Coverage cov = Coverage() cov.start() #.. call your code .. cov.stop() 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`. zList[Coverage] _instancesrDOptional[Coverage]c.|jr |jdSdS)zGet the latest started `Coverage` instance, if any. Returns: a `Coverage` instance, or None. .. versionadded:: 5.0 N)rP)clss rLcurrentzCoverage.currentfs  > >"% %4NFT data_file'Optional[Union[FilePath, DefaultValue]] data_suffixOptional[Union[str, bool]] cover_pylibOptional[bool] auto_databooltimidbranch config_fileUnion[FilePath, bool]sourceOptional[Iterable[str]] source_pkgsomit#Optional[Union[str, Iterable[str]]]includedebug concurrencycheck_preimportedcontext Optional[str]messagesNonecNt|_|du|_t|trd}|t j|}d|_|x|_|_ ||_ d|_ d|_ ||_ g|_||_g|_t#|_d|_t)|_d|_d|_t0|_dx|_|_i|_d|_d|_d|_d|_ d|_!t|tDst j|}tGdid|d|j$d|d|d|d |d tK|d |d | d | d| d| d| d| d| d||_tLj'stQdSdS)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. `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 ` label for collected data. If `messages` is true, some messages will be printed to stdout indicating what is happening. .. 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. NTFrawarnrWr[r_r`parallelrcrerun_omit run_includeri report_omitreport_includerjrlrG))rrH_no_disk isinstancer.osfspath _debug_file _auto_load _auto_save_data_suffix_specified _warn_no_data_warn_unimported_source_warn_preimported_source_no_warn_slugs _messages _warningsr_debug_inoroutr3_plugins_data _collectorr% _file_mapper _data_suffix _run_suffix _exclude_re _old_sigterm_inited_inited_for_start_started_should_write_debugr^r_warnr,rMETACOV _prevent_sub_process_measurement)selfrWrYr[r]r_r`rarcrerfrhrirjrkrlrns rL__init__zCoverage.__init__ts;Z%&& "T) i . . I   ),,I/3,55$/&1#"'+$(9%)+!%'%0MM +/ !( -1 /32:/33D,+-QU !& #' +t,, 1)K00K*   #    i $  %  6  "+... 6 $  T   %  #7 $  G!  0{ / , . . . . . / /rVc|jrdSd|_t|jj|j|jj|_d|jjpdvr d|j_i|_ t|jj r t|_ tj|jj|j|j|_|jjD]E}|||jgt)t+jdzFdS)zSet 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. NTmultiprocessingrG)rrrHrir{ debug_filerrjrrrr'relative_filesr&rr3 load_pluginspluginsr configurers configureinttimerplugins rL_initzCoverage._init/s <  F #4;#4d6F H^__ !8!>B ? ?$(DK    ; % 2 1D  ,T[-@$+t{[[ m/ H HF   dDK0TY[[1A1AA1EF G G G G  H HrVc|jrd|_||jjr8|jjt dvrt d|jjdSdS)z,Stuff to do after everything is initialized.F)limitzCrashing because called by N)r_write_startup_debugrH_crashr RuntimeErrorrs rL _post_initzCoverage._post_initVs  # (',D $  % % ' ' ' ;  S$+"4 !8L8L8L"L"LQT[=OQQRR R S S"L"LrVcd}|j5|jdr6|j}t |jjd|d}|jdrrt |jjd||jD];}d|j z}|}t |jj|| > > > > ? ?sD%E  EEfilenamestrframerr=c|jJ|j||}|jdr'|jt ||S)zDecide whether to trace execution in `filename`. Calls `_should_trace_internal`, and returns the FileDisposition. Ntrace)r should_tracerrrr)rrrdisps rL _should_tracezCoverage._should_traceyse }(((}))(E:: ;  g & & ; K  3D99 : : : rVc|jJ|j||}|jdr*|sd|}nd|d|}|j|| S)zCheck a file name against the include/omit/etc, rules, verbosely. Returns a boolean: True if the file should be traced, False if not. Nrz Including zNot including z: )rcheck_include_omit_etcrrr)rrrreasonmsgs rL_check_include_omit_etcz Coverage._check_include_omit_etcs }(((55hFF ;  g & & # >/8//=x==V== K  c " " "zrVrslugoncec|jst|jj|_||jvrdS|j||r|d|d}|jdrdtj d|}tj |td|r |J|j|dSdS) zUse `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 ()pid[z] r)category stacklevel) rlistrHdisable_warningsrappendrrrygetpidwarningsrqr")rrrrs rLrzCoverage._warns" E"&t{'C"D"DD  4& & & F c"""  $##D###C ;  e $ $ +*bikk**S**C cOBBBB  -###   & &t , , , , , - -rVc6|jrt|dSdS)z4Write a message to the user, if configured to do so.N)rprint)rrs rL_messagezCoverage._messages% >  #JJJJJ  rV option_nameOptional[TConfigValueOut]c6|j|S)aGet 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 )rH get_option)rrs rLrzCoverage.get_options {%%k222rVvalue'Union[TConfigValueIn, TConfigSectionIn]c<|j||dS)ahSet 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)rH set_option)rrrs rLrzCoverage.set_options"< {E22222rVc~||j|j|jjo)t j|jj }|s| d| |s$|j J|j dSdS)z;Load previously-collected coverage data from the data file.Nsuffix) rrresetrHrrrypathexistsrW _init_datarrread)r should_skips rLloadz Coverage.loads ? & O ! ! # # #k*X27>>$+BW3X3X/X  ) OO4O ( ( (  :))) JOO       rVc r|jjpg}d|vr5|jjtdt |jj|jj}|r|dkrg}n!|dkr t g}ntd||d|jj Dt|}t|j |j ||j|jj|jj|j| |_|j}|rt)|t*sd }n8|jjr*|d }n't)|t*st/|}nd}|||jJ|j|j|jj|jjr|jjs}|d d d |jjD|j |jjD] }d|_! tE|j|j|j#$dr|j#nd|jj%|_&|j|j&_'|jj(|j&_)d |_*tWj,|j-|jj.rat_j0t_j1k}|r9tdj3s/tij4thj5|j6|_7dSdSdSdS)zInitialization for start()rNz-multiprocessing requires a configuration file)rcfilenone test_functionz*Don't understand dynamic_context setting: c3$K|] }|jV dSN)dynamic_context.0rs rL z+Coverage._init_for_start..s6! ! '-F "! ! ! ! ! ! rV)r check_includeshould_start_context file_mapperr_r`rqrjTz1Plugin file tracers ({}) aren't supported with {}z, c3$K|] }|jV dSr)rrs rLrz+Coverage._init_for_start..-s9 &4rVFr)rHrqriinclude_namespace_packages)8rHrjrar r1rrextendrcontext_switchersrrrrrr_r`rrr~rxrrrr^rruse_datarl file_tracerssupports_pluginsformatjoin tracer_name_coverage_enabledr)rrrrrfile_disposition_class disp_classratexitregister_atexitsigterm threadingcurrent_thread main_threadrWINDOWSsignalSIGTERM _on_sigtermr)rrjdyconrrrris_mains rL_init_for_startzCoverage._init_for_starts}"&!8!>B  + +{&.!"QRRR !)@ A A A A + V "   o % %!C D  T5TTUU U  ! ! 151P! ! !     99JKK#+6!5)+#;%#    ,  fc**  [ ! ~,, &fF z%%%   T[-@AAA = % 1do.N 1 JJCJJII*.-*DO//11    -4 1 1+0(( ;"&+"4"4W"="=G4;;4'+{'M     !%  #'?#I  $(   %%% ;   /11Y5J5L5LLG s{ %+MND$4%%!!!       rVrc|jMt|jjt |jj||j|j|j|_dSdS)z,Create a data file if we don't have one yet.N)basenamerrqrino_disk)rr/rHrWrrrrw)rrs rLrzCoverage._init_dataPs[ :   5 6 6 6%.Zk DJJJ  rVc||jsd|_|||jJ|jJ|j|jr|j|j r| |j d|_ |j |dS)aaStart measuring code coverage. Coverage measurement only occurs 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. TN)rrrrrrwarn_conflicting_settingsrwarn_already_imported_filesr|rstartrrPrrs rLrzCoverage.start_s % #%)D "  " " " ***}((( //111  ( 8 M 5 5 7 7 7 ?  IIKKK   t$$$$$rVc|jr(|jd|ur|j|jr"|jJ|jd|_dS)zStop measuring code coverage.rSNF)rPpoprrstoprs rLrz Coverage.stopsi ? &r"d**##%%% = #?... O " " " rVreventc|jdr3|j|dtjd||jr||js|dkr|dSdS)zClean up on process shutdown.processz: pid: z , instance: rN) rrrryrrrr}save)rrs rLrzCoverage._atexits ;  i ( ( R K  PPry{{PPPP Q Q Q =  IIKKK ? ey00 IIKKKKK10rV signum_unusedr frame_unusedOptional[FrameType]c|dtjtj|jt jt jtjdS)zA handler for signal.SIGTERM.rN)rr rrrykillr)rr!r"s rLrzCoverage._on_sigtermsM Y  fnd&7888  V^,,,,,rVc:|||j|j|d|jJ|j|jjd|_d|_ dS)zErase previously collected coverage data. This removes the in-memory data collected in this session as well as discarding the data file. Nr)rrF) rrrrrreraserHrrrrs rLr'zCoverage.erases   ? & O ! ! # # # t$$$z%%% $+"6777 !&rV new_contextc|jstd|jJ|jjr|ddd|j|dS)aSwitch to a new dynamic context. `new_context` is a string to use as the :ref:`dynamic context ` label for collected data. If a :ref:`static context ` 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 startedNzConflicting dynamic contextszdynamic-conflictT)rr)rr!rrrswitch_context)rr(s rLr*zCoverage.switch_contextsq} V#$TUU U*** ? / [ JJ5  t$$$  z%%% J&&((!M       rVrc\||d||jX|jD]#}|js|j|$|jr||j J|j S)zGet the collected data. Also warn about various problems collecting data. Returns a :class:`coverage.CoverageData`, the collected coverage data. .. versionadded:: 4.0 Nr) rrrrrrplugin_was_disabled flush_data_post_save_workrrs rLr?zCoverage.get_data2s  t$$$  ? &- @ @/@O77???))++ '$$&&&z%%%zrVc|jJ|jJ|jr|j|js|jr|ddt jt}|j D]5\}}| |}|| |6| D] \}}|j ||!dS)zAfter saving data, look for warnings, post-work, etc. Warn about things that should have happened but didn't. Look for un-executed files. NzNo data was collected.zno-data-collected)r)rrrwarn_unimported_sourcerr collections defaultdictrfind_possibly_unexecuted_filesrritems touch_files)r file_paths file_path plugin_namerFs rLrVzCoverage._post_save_workKsz%%%}(((  ' 3 M 0 0 2 2 2z Kd0 K JJ/6IJ J J J!,T22 &*m&R&R&T&T 6 6 "I{)))44I { # * *9 5 5 5 5","2"2"4"4 7 7 K J " "5+ 6 6 6 6 7 7rVmorfr?-Tuple[str, List[TLineNo], List[TLineNo], str]cD||\}}}}}||||fS)z:Like `analysis2` but doesn't return excluded line numbers.) analysis2)rrafs_mmfs rLanalysiszCoverage.analysishs+--1aB!Q{rVz0Coverage._get_file_reporters..s'JJJD$11$77JJJrV)rmeasured_filesrxrtupleset)rrfile_reporterss` rL_get_file_reporterszCoverage._get_file_reporterssoz%%% 0J--//E%$s!344 GEJJJJEJJJrVc|jjrZt|j|jd}|j.||j|||_dSdS)zARe-map data before reporting, to get implicit "combine" behavior.T)rqrirN)rI)rHrFrrrrupdaterL)r mapped_datas rL_prepare_data_for_reportingz$Coverage._prepare_data_for_reportingsl ;  %&DJdkSWXXXKz%""4:t7I7I7K7K"LLL$DJJJ  % %rV show_missing ignore_errorsfileOptional[IO[str]]Optional[Union[str, List[str]]] skip_coveredcontextsOptional[List[str]] skip_emptyrw Optional[int]sort output_formatfloatc |t|||||||| | | |  5t|} | ||cdddS#1swxYwYdS)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 ` that match one of those expressions (using :func:`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 `. 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. ) rrurvrrreport_contextsrrwrr)outfileN)rrMr5report)rrrrrrfrhrrrrwrrreporters rLrzCoverage.reportsB ((***  '"%%$!      8 8't,,H??5$?77 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8s&A""A&)A& directoryctdtd|t|||||5t|}|||ddddS#1swxYwYdS)aDAnnotate a list of modules. .. note:: This method has been obsoleted by more modern reporting tools, including the :meth:`html_report` method. It will be removed in a future version. 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. z9The annotate command will be removed in a future version.z7Get in touch if you still use it: ned@nedbatchelder.com)rrurvr)rN)rrrMrr)rrrrrfrhrrs rLannotatezCoverage.annotate's2 IJJJ GHHH ((***  '"$     8 8(--H OOEYO 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8s'A;;A?A? extra_csstitle show_contextsc |t||||||||| | | |  5t|} | |}|cdddS#1swxYwYdS)aEGenerate 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. ) rrurvhtml_dirr html_titlehtml_skip_coveredrrhtml_skip_emptyrwN)rrMr(r)rrrrrfrhrrrrrrrwrrets rL html_reportzCoverage.html_reportNsN ((***  '"*'$&      $D))H//%((C!                  s&A##A'*A'rc |t|||||||5t|jjt |||jcdddS#1swxYwYdS)abGenerate 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. )rrurv xml_outputrrN)rrMr6rHrr@r)rrrrrfrhrrs rL xml_reportzCoverage.xml_reports, ((***  '"$!   b b!!7T9J9JESWS`aa b b b b b b b b b b b b b b b b b bs.A&&A*-A* pretty_printc |t||||||||5t|jjt |||jcdddS#1swxYwYdS)aGenerate 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 )rrurv json_outputrjson_pretty_printjson_show_contextsN)rrMr6rHrr*r) rrrrrfrhrrrs rL json_reportzCoverage.json_reports2 ((***  '"$*,    d d!!8,t:L:LeUYUbcc d d d d d d d d d d d d d d d d d ds.A''A+.A+c|t||||||5t|jjt |||jcdddS#1swxYwYdS)aGenerate 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 )rrurv lcov_outputrN)rrMr6rHrr+r)rrrrrfrhrs rL lcov_reportzCoverage.lcov_reports$ ((***  '"$     d d!!8,t:L:LeUYUbcc d d d d d d d d d d d d d d d d d ds.A%%A),A)Iterable[Tuple[str, Any]]cddl}||d'd}d|jfd |jfd |j|jnd fd trd ndfd||jj fd||jj fd||jj fd|j j fd|j jfd|j jfd|j jrt#|j jnd fd|j|jnd fdt(jddfdt/jfdt/jfdt(jfdt)jfdt)jfdt9jfd t9jfd!t(jfd"d#tAt8j!Dfd$d%"tGt(d&d gfg}|j$,|%|j$&|%tOj&|S)(zAReturn a list of (key, value) pairs showing internal information.rNr List[Any]rDr;cdg}|D]*}|j}|js|dz }||+|S)z7Make an entry for the sys_info from a list of plug-ins.z (disabled))rrr)rentriesrentrys rL plugin_infoz&Coverage.sys_info..plugin_infosMG! & &4/+]*Eu%%%%NrVcoverage_versioncoverage_moduletracerz-none-CTracer available unavailablezplugins.file_tracerszplugins.configurerszplugins.context_switchersconfigs_attempted configs_readraconfig_contentsrWrz platformimplementation executable def_encoding fs_encodingrcwdr environmentc"g|] \}}|d| S)z = rG)rkvs rLrz%Coverage.sys_info..s&___da\\a\\___rV command_line argv)rrrDr;)(coveragerr __version____file__rrrrrrrrHattempted_config_filesconfig_files_readra_config_contentsreprr data_filenamerversionreplacerpython_implementationrgetdefaultencodinggetfilesystemencodingryrgetcwdrrenvironrr5rrrr)rcovmodrrs rLrzCoverage.sys_infosj "!!!       !3 4  0 8St22444Ya b {E F #[[1K%L%L M "KK 0I$J$J K (++dm6U*V*V W $+"D E T[: ; DK3 4 6:k6R`T[1222X`  8N$*22444T\ ] s{**444 5 *,, - x=?? @ 3> * S355 6 C577 8 BIKK BIKK SX  __6RSUS]6^6^___ ` SXXgc6H:&F&FGG H3 8 = $ KK ..00 1 1 1 L)++,,, rVrDrQ)"rWrXrYrZr[r\r]r^r_r\r`r\rarbrcrdrerdrfrgrhrgrirdrjrgrkr^rlrmrnr^rDrorDro)rrrrrDr=)rrrrrDr^)NF)rrrrmrr^rDro)rrrDro)rrrDr)rrrrrDro)rrZrDro)r)rrrDro)r!rr"r#rDro)r(rrDro)r+)r,rrDro)r3rr,rrDro)r,rrDr)r,rrDr;)rDr$)NFF)rMrdrNr^rOr^rDro)rDr)rar?rDrb)rar?rDrk)rsrtrDr7)rar?rDr2r)rrrDr) NNNNNNNNNNNN)rrrr\rr\rrrfrrhrrr\rrrr\rwrrrmrrmrDr)NNNNNN)rrrrmrr\rfrrhrrrrDro)rrrrmrr\rfrrhrrrmrrmrr\rr\rrrr\rwrrDr)NNNNNNN)rrrrmrr\rfrrhrrrrr\rDr)NNNNNNNN)rrrrmrr\rfrrhrrrrr\rr\rDr)rrrrmrr\rfrrhrrrrDr)rDr)3__name__ __module__ __qualname____doc__rP__annotations__ classmethodrUDEFAULT_DATAFILErrrrrrrrrrrrrrrrrr'r*r2r+r0r:r=r rLrRr?rVrjrdrmrvrrrrrrrrrrGrVrLrBrBNs*"$J####   [ >N26&* $!%-1*./3487;)-;?"'!%#y/y/y/y/y/v%H%H%H%HN S S S S????0    "-----6 3333$3333@    YYYYv    !%!%!%!%F----''''"4444,$$$$$ $$$$$(!!!!''''FFFFF    /3 , , , , , \27777:     :LLLL$6,%%%%,0'+(,"&0437'+(,%)#'"'+P8P8P8P8P8h,0#'(,0437(,%8%8%8%8%8R,0#'(,0437#'#'+(,(,%)#'88888x,0!%(,0437(,%) b b b b bH,0!%(,0437(,'+(,$d$d$d$d$dP,0!%(,0437(,ddddd:333333rVCOVERAGE_DEBUG_CALLS)decorate_methods show_callsT) show_argsr?)butnotrQctjd}|sdSttdrdSt |}|t_d|_d|_d|_ d|_ | |S)aCall this at Python start-up to perhaps measure coverage. If the environment variable COVERAGE_PROCESS_START is defined, coverage measurement is started. The value of the variable is the config file to use. There are two ways to configure your Python installation to invoke this function when Python starts: #. Create or append to sitecustomize.py to add these lines:: import coverage coverage.process_startup() #. Create a .pth file in your Python installation containing:: import coverage; coverage.process_startup() Returns the :class:`Coverage` instance that was started, or None if it was not started by this call. COVERAGE_PROCESS_STARTNr)raFT) ryrr|hasattrprocess_startuprBrrrrr}r)cpsrAs rLrr.s. *..1 2 2C t ++t s # # #C"OC"'C#(C CNIIKKK JrVrocHttdd}| d|_dSdS)z7Stop any subprocess auto-measurement from writing data.rNF)r5rr})auto_created_coverages rLrrcs1#OZFF(+0((()(rV)rArBrCr;rDrErr)qr __future__rrrY contextlibryos.pathrr rr rrtypesrtypingrrrrr r r r r rrrrcoverage.annotatercoverage.collectorrrcoverage.configrrcoverage.contextrr coverage.datarrcoverage.debugrrrrrcoverage.dispositionrcoverage.exceptionsr r!r"r#coverage.filesr$r%r&r' coverage.htmlr(coverage.inoroutr)coverage.jsonreportr*coverage.lcovreportr+ coverage.miscr,r-r.r/r0coverage.multiprocr1coverage.pluginr2coverage.plugin_supportr3coverage.pythonr4coverage.reportr5coverage.report_corer6coverage.resultsr7coverage.typesr8r9r:r;r<r=r>r?coverage.xmlreportr@contextmanagerrMr_DEFAULT_DATAFILErBrrr|rrrrrGrVrLrs*)""""""     ......55555555@@@@@@@@ZZZZZZZZ========766666\\\\\\\\\\\\[[[[[[[[[[[[&&&&&&$$$$$$,,,,,,,,,,,,22222222KKKKKKKKKK444444((((((++++++......++++++......%%%%%%+*****^B  % % % % < **$RRRRR}RRRn&3rz~~,a0011;;;;;;;; T"""|H 2222j111111rV