opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
nose
/
plugins
/
__pycache__
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
__init__.cpython-312.pyc
6.40 KB
Rename
Delete
allmodules.cpython-312.pyc
2.30 KB
Rename
Delete
attrib.cpython-312.pyc
9.89 KB
Rename
Delete
base.cpython-312.pyc
30.22 KB
Rename
Delete
builtin.cpython-312.pyc
1.16 KB
Rename
Delete
capture.cpython-312.pyc
5.10 KB
Rename
Delete
collect.cpython-312.pyc
4.97 KB
Rename
Delete
cover.cpython-312.pyc
13.92 KB
Rename
Delete
debug.cpython-312.pyc
3.08 KB
Rename
Delete
deprecated.cpython-312.pyc
2.11 KB
Rename
Delete
doctests.cpython-312.pyc
21.00 KB
Rename
Delete
errorclass.cpython-312.pyc
9.29 KB
Rename
Delete
failuredetail.cpython-312.pyc
2.27 KB
Rename
Delete
isolate.cpython-312.pyc
5.18 KB
Rename
Delete
logcapture.cpython-312.pyc
12.53 KB
Rename
Delete
manager.cpython-312.pyc
21.72 KB
Rename
Delete
multiprocess.cpython-312.pyc
38.25 KB
Rename
Delete
plugintest.cpython-312.pyc
17.02 KB
Rename
Delete
prof.cpython-312.pyc
6.64 KB
Rename
Delete
skip.cpython-312.pyc
2.46 KB
Rename
Delete
testid.cpython-312.pyc
11.73 KB
Rename
Delete
xunit.cpython-312.pyc
16.28 KB
Rename
Delete
� ��g�- � �~ � d Z ddlZddlZddlZddlZddlmZ ddlmZm Z ej e� Z G d� de� Z y)a� If you have Ned Batchelder's coverage_ module installed, you may activate a coverage report with the ``--with-coverage`` switch or NOSE_WITH_COVERAGE environment variable. The coverage report will cover any python source module imported after the start of the test run, excluding modules that match testMatch. If you want to include those modules too, use the ``--cover-tests`` switch, or set the NOSE_COVER_TESTS environment variable to a true value. To restrict the coverage report to modules from a particular package or packages, use the ``--cover-package`` switch or the NOSE_COVER_PACKAGE environment variable. .. _coverage: http://www.nedbatchelder.com/code/modules/coverage.html � N)�Plugin)�src�tolistc �h � � e Zd ZdZdZdZdZdZdZdZ i Z � fd�Z� fd�Zd� Z d� Zd � Zd � Zdd�Z� xZS ) �CoveragezL Activate a coverage report using Ned Batchelder's coverage module. FN�� c � �� t t | � ||� |j dd|j d� ddd�� |j dd |j d � dd� � |j dd d|j d� d�� |j ddd|j d� d�� |j dd d|j d� d�� |j dd |j d� dd� � |j d d|j d!d"� d#d$d%�&� |j d'd |j d(� d)d*� � |j d+d |j d,� d-d.� � |j d/d|j d0d1� d2d3d4�&� y5)6z. Add options to command line. z--cover-package�append�NOSE_COVER_PACKAGE�PACKAGE�cover_packageszBRestrict coverage output to selected packages [NOSE_COVER_PACKAGE])�action�default�metavar�dest�helpz --cover-erase� store_true�NOSE_COVER_ERASE�cover_erasez9Erase previously collected coverage statistics before run)r r r r z --cover-tests�cover_tests�NOSE_COVER_TESTSz:Include test modules in coverage report [NOSE_COVER_TESTS])r r r r z--cover-min-percentage�store�cover_min_percentage�NOSE_COVER_MIN_PERCENTAGEzLMinimum percentage of coverage for tests to pass [NOSE_COVER_MIN_PERCENTAGE]z--cover-inclusive�cover_inclusive�NOSE_COVER_INCLUSIVEz�Include all python files under working directory in coverage report. Useful for discovering holes in test coverage if not all files are imported by the test suite. [NOSE_COVER_INCLUSIVE]z--cover-html�NOSE_COVER_HTML� cover_htmlz!Produce HTML coverage informationz--cover-html-dir�NOSE_COVER_HTML_DIR�cover�cover_html_dir�DIRz(Produce HTML coverage information in dir)r r r r r z--cover-branches�NOSE_COVER_BRANCHES�cover_branchesz@Include branch coverage in coverage report [NOSE_COVER_BRANCHES]z--cover-xml�NOSE_COVER_XML� cover_xmlz Produce XML coverage informationz--cover-xml-file�NOSE_COVER_XML_FILEzcoverage.xml�cover_xml_file�FILEz(Produce XML coverage information in fileN)�superr �options� add_option�get)�self�parser�env� __class__s ��A/opt/hc_python/lib/python3.12/site-packages/nose/plugins/cover.pyr+ zCoverage.options# s� �� � �h��%�f�c�2����+�H�"%�'�'�*>�"?�"+�/� 1� � 2� ���/�,�"%�'�'�*<�"=�,� 2� � 3� ���/�,�,�"%�'�'�*<�"=� /� � 0� ���2�7�5�"%�'�'�*E�"F� @� � A� ���-�l�0�"%�'�'�*@�"A� 3� � 4� ���.��"%�'�'�*;�"<�+�B� � D� ���,�W�"%�'�'�*?��"I�/�"'�I� � K� ���,�\�"%�'�'�*?�"@�/� 2� � 3� ���-��"%�'�'�*:�";�*�A� � C� ���,�W�"%�'�'�*?��"P�/�"(�I� � K� c � �� | j j d� t t | � ||� | j r ddl}t |d� st d� � || _ |j | _ |j | _ g | _ |j$ rst'