Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/tap/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/tap/__pycache__/adapter.cpython-311.pyc

�

�܋f��"�Gd�de��ZdS)c�4�eZdZdZeZd�Zd�Zd�Zd�Z	d�Z
dS)�Adapterz�The adapter processes a TAP test line and updates a unittest result.

    It is an alternative to TestCase to collect TAP results.
    c�"�||_||_dS)N)�	_filename�_line)�self�filename�lines   �\/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/tap/adapter.py�__init__zAdapter.__init__	s��!�����
�
�
�c��|jjS)z/Get the short description for verbeose results.)r�description�rs r
�shortDescriptionzAdapter.shortDescription
s
���z�%�%rc��|�|��|jjr'|�d|jjj��dS|jjrN|jjr|�|��n*|�	|tt��df��dS|jjr|�|��dS|�|��dS)z�Update test result with the lines in the TAP file.

        Provide the interface that TestCase provides to a suite or runner.
        N)
�	startTestr�skip�addSkip�	directive�reason�todo�ok�addUnexpectedSuccess�addExpectedFailure�	Exception�
addSuccess�
addFailure)r�results  r
�__call__zAdapter.__call__s���
	��������:�?�	��N�N�4���!5�!<�=�=�=��F��:�?�	��z�}�
P��+�+�D�1�1�1�1��)�)�$��I�K�K��0N�O�O�O��F��:�=�	$����d�#�#�#�#�#��O�O�F�#�#�#�#�#rc��|�|tt��df��|jd\}}|df|jd<dS)zAdd a failure to the result.N����)rr�failures)rr�test�errs    r
rzAdapter.addFailure(sK�����$��I�K�K�� >�?�?�?��O�B�'�	��c�#�R�j������rc�8�d�|j���S)Nz<file={filename}>)r)�formatrrs r
�__repr__zAdapter.__repr__0s��"�)�)�4�>�)�B�B�BrN)�__name__�
__module__�__qualname__�__doc__�AssertionError�failureExceptionrrrrr(�rr
rrsv��������
&�����&�&�&�$�$�$�.)�)�)�C�C�C�C�CrrN)�objectrr/rr
�<module>r1sC��0C�0C�0C�0C�0C�f�0C�0C�0C�0C�0Cr

Hacked By AnonymousFox1.0, Coded By AnonymousFox