Your IP : 216.73.216.172


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

�

�h��� �Gd�d��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.8/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��d|j�d�S)Nz<file=�>)rrs r
�__repr__zAdapter.__repr__0s��)���)�)�)�)rN)�__name__�
__module__�__qualname__�__doc__�AssertionError�failureExceptionrrrrr(�rr
rrsq��������
&�����&�&�&�$�$�$�.)�)�)�*�*�*�*�*rrN)rr/rr
�<module>r0s7��0*�0*�0*�0*�0*�0*�0*�0*�0*�0*r

?>