Your IP : 216.73.216.213
B
P}�Wyd � @ s2 d Z ddlZddlZddlZddlZddlZddlZddlm Z ddl
mZ ddlm
Z
mZ ddlmZmZmZ ddlmZmZ G dd � d e�ZG d
d� deje�ZG dd
� d
e�ZG dd� de�ZejejejgZedej ej!ej"ej#ge ddd�edej$ge ddd�ededdd�ededd�ededdd�ed ej ej%ej!ej"ej#ej&ge dd!d�ed"ej%ej!ej"ej#ej'ej(ge dd#d�ed$ej$ej)ej*ej"ej+ej#ej,ej-ej.ej/g
e d%d&d�ed'ej%ej!ej"ej#ej0ge dd(d�d)� Z1d*\Z2Z3Z4G d+d,� d,e�Z5d-d.� Z6d/d0� Z7d1d2d3d4�Z8d7d5d6�Z9dS )8z%Command-line support for coverage.py.� N)�env)�CTracer)�run_python_file�run_python_module)�CoverageException�ExceptionDuringRun�NoSource)�info_formatter�info_headerc
@ s� e Zd ZdZejddddd�Zejdddd d�Zd
ddd
dgZejddddedd� e� d�Z
ejdddddd�Zejdddddd�Zejdddddd d!�Z
ejd"d#dd$d�Zejd%d&dd'd�Zejdd(dd)d*d�Zejd+d,dd-d�Zejd.d/dd0d�Zejd1dd2d�Zejdd3dd)d4d�Zejd5ddd6d7d8d9�Zejd:d;dd<d�Zejd.d=dd>d�Zejdd?dd@d�ZejddAddBdCd�ZejddDddEd�ZejddFddGdHd�ZejddIddJd�ZdKS )L�OptszBA namespace class for individual options we'll build parsers from.z-az--append�
store_truezGAppend coverage data to .coverage, otherwise it starts clean each time.)�action�help� z--branchz:Measure branch coverage in addition to statement coverage.�threadZgeventZgreenletZeventlet�multiprocessingz
--concurrency�storeZLIBzHProperly measure code using a concurrency library. Valid values are: %s.z, )r
�metavar�choicesr z--debugZOPTSz"Debug options, separated by commas)r
r r z-dz--directoryZDIRzWrite the output files to DIR.z--fail-underZMIN�intz?Exit with a status of 2 if the total coverage is less than MIN.)r
r �typer z-hz--helpzGet help on this command.z-iz--ignore-errorsz)Ignore errors while reading source files.z --includez
PAT1,PAT2,...zpInclude only files whose paths match one of these patterns. Accepts shell-style wildcards, which must be quoted.z-Lz--pylibzWMeasure coverage even inside the Python installed library, which isn't done by default.z-mz--show-missingzEShow line numbers of statements in each module that weren't executed.z--skip-coveredzSkip files with 100% coverage.z--omitzhOmit files whose paths match one of these patterns. Accepts shell-style wildcards, which must be quoted.z-o�outfileZOUTFILEz=Write the XML report to this file. Defaults to 'coverage.xml')r
�destr r z-pz--parallel-modez�Append the machine name, process id and random number to the .coverage data file name to simplify collecting data from many processes.z--modulezb<pyfile> is an importable Python module, not a script path, to be run as 'python -m' would run it.z--rcfilez6Specify configuration file. Defaults to '.coveragerc'z--sourcez
SRC1,SRC2,...z9A list of packages or directories of code to be measured.z--timidzYUse a simpler but slower trace method. Try this if you get seemingly impossible results!z--titleZTITLEz.A text string to use as the title on the HTML.z --versionz%Display version information and exit.N)�__name__�
__module__�__qualname__�__doc__�optparseZmake_option�append�branchZCONCURRENCY_CHOICES�join�concurrency�debug� directory�
fail_underr �
ignore_errors�include�pylib�show_missing�skip_covered�omit�
output_xml�
parallel_mode�module�rcfile�source�timid�title�version� r3 r3 �C/opt/alt/python37/lib64/python3.7/site-packages/coverage/cmdline.pyr s�
r c sP e Zd ZdZ� fdd�Zd
dd�ZG dd� de�Zd� fd d
� Zdd� Z � Z
S )�CoverageOptionParserz|Base OptionParser for coverage.py.
Problems don't exit the program.
Defaults are initialized for all options.
c sb t t| �j|ddi|�� | jd d d d d d d d d d d d d d dd d d d d d d� | �� | j| _d S )NZadd_help_optionFT)r
r r r! r"