ok

Mini Shell

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

�

�܋f}����	ddlZdZn
#e$rdZYnwxYwGd�de��ZGd�de��ZGd�d	e��ZGd
�de��ZGd�d
e��ZGd�de��Z	Gd�de��Z
dS)�NTFc�(�eZdZdZed���ZdS)�LinezhBase type for TAP data.

    TAP is a line based protocol. Thus, the most primitive type is a line.
    c��t��N)�NotImplementedError��selfs �Y/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/tap/line.py�categoryz
Line.categorys��!�!�N��__name__�
__module__�__qualname__�__doc__�propertyr�rr
rr	s9��������
�"�"��X�"�"�"rrc���eZdZdZ					d
d�Zed���Zed���Zed���Zed���Z	ed	���Z
ed
���Zed���Zd�Z
dS)�Resultz*Information about an individual test line.N�c��||_|rt|��|_nd|_||_||_||_||_dSr)�_ok�int�_number�_description�	directive�diagnostics�_yaml_block)r	�ok�number�descriptionrr�raw_yaml_blocks       r
�__init__zResult.__init__sP������	 ��v�;�;�D�L�L� �D�L�'���"���&���)����rc��dS)z:returns: ``test``�testrrs r
rzResult.category+�	���vrc��|jS)z1Get the ok status.

        :rtype: bool
        )rrs r
rz	Result.ok0s���x�rc��|jS)z2Get the test number.

        :rtype: int
        )rrs r
r z
Result.number8s���|�rc��|jS)zGet the description.)rrs r
r!zResult.description@s
��� � rc��|jjS)z>Check if this test was skipped.

        :rtype: bool
        �r�skiprs r
r,zResult.skipE����~�"�"rc��|jjS)z=Check if this test was a TODO.

        :rtype: bool
        )r�todors r
r/zResult.todoMr-rc���trX|j�Q	tj|jtj���}|S#tjj$rtd��YnwxYwdS)z�Lazy load a yaml_block.

        If yaml support is not available,
        there is an error in parsing the yaml block,
        or no yaml is associated with this result,
        ``None`` will be returned.

        :rtype: dict
        N)�Loaderz+Error parsing yaml block. Check formatting.)�	LOAD_YAMLr�yaml�load�
SafeLoader�error�	YAMLError�print)r	�	yaml_dicts  r
�
yaml_blockzResult.yaml_blockUsx���	E��)�5�
E� �I�d�&6�t��O�O�O�	� � ���:�'�
E�
E�
E��C�D�D�D�D�D�
E�����ts�&7�#A�Ac��d}|jsd}d}|j�+|jjrd�|jj��}d}|j�d|j���z}d�||j|j||��S)Nrznot z # {0}�
z{0}ok {1} {2}{3}{4})rr�text�formatr�rstripr r!)r	�is_notrrs    r
�__str__zResult.__str__hs������w�	��F��	��>�%�$�.�*=�%� �����(;�<�<�I�����'���!1�!8�!8�!:�!:�:�K�$�+�+��D�K��!1�9�k�
�
�	
r)NrNNN)rrrrr#rrrr r!r,r/r:rArrr
rrs������4�4�
�����*�*�*�*�(����X������X������X���!�!��X�!��#�#��X�#��#�#��X�#�����X��$
�
�
�
�
rrc�\�eZdZdZdd�Zed���Zed���Zed���ZdS)�Planz1A plan line to indicate how many tests to expect.Nc�"�||_||_dSr)�_expected_testsr)r	�expected_testsrs   r
r#z
Plan.__init__zs��-���"����rc��dS)z:returns: ``plan``�planrrs r
rz
Plan.category~r&rc��|jS)z?Get the number of expected tests.

        :rtype: int
        )rErs r
rFzPlan.expected_tests�s
���#�#rc��|jjS)zGCheck if this plan should skip the file.

        :rtype: bool
        r+rs r
r,z	Plan.skip�r-rr)	rrrrr#rrrFr,rrr
rCrCws������;�;�#�#�#�#�����X���$�$��X�$��#�#��X�#�#�#rrCc�D�eZdZdZd�Zed���Zed���ZdS)�
Diagnosticz7A diagnostic line (i.e. anything starting with a hash).c��||_dSr��_text)r	r=s  r
r#zDiagnostic.__init__�s
����
�
�
rc��dS)z:returns: ``diagnostic``�
diagnosticrrs r
rzDiagnostic.category�s	���|rc��|jS)z
Get the text.rNrs r
r=zDiagnostic.text�s���z�rN)rrrrr#rrr=rrr
rLrL�s_������A�A��������X������X���rrLc�D�eZdZdZd�Zed���Zed���ZdS)�Bailz:A bail out line (i.e. anything starting with 'Bail out!').c��||_dSr��_reason)r	�reasons  r
r#z
Bail.__init__�s
������rc��dS)z:returns: ``bail``�bailrrs r
rz
Bail.category�r&rc��|jS)zGet the reason.rVrs r
rXzBail.reason�s���|�rN)rrrrr#rrrXrrr
rTrT�s_������D�D��������X������X���rrTc�D�eZdZdZd�Zed���Zed���ZdS)�Versionz3A version line (i.e. of the form 'TAP version 13').c��||_dSr��_version)r	�versions  r
r#zVersion.__init__�s
����
�
�
rc��dS)z:returns: ``version``rarrs r
rzVersion.category��	���yrc��|jS)z5Get the version number.

        :rtype: int
        r_rs r
razVersion.version�s���}�rN)rrrrr#rrrarrr
r]r]�s_������=�=� � � �����X������X���rr]c�(�eZdZdZed���ZdS)�Unknownz~A line that represents something that is not a known TAP line.

    This exists for the purpose of a Null Object pattern.
    c��dS)z:returns: ``unknown``�unknownrrs r
rzUnknown.category�rcrNr
rrr
rfrf�s9��������
����X���rrf)r3r2�ImportError�objectrrrCrLrTr]rfrrr
�<module>rksw����K�K�K��I�I�������I�I�I�����"�"�"�"�"�6�"�"�"�`
�`
�`
�`
�`
�T�`
�`
�`
�F#�#�#�#�#�4�#�#�#�:���������"�����4����"�����d����(	�	�	�	�	�d�	�	�	�	�	s�	��

Zerion Mini Shell 1.0