ok
Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/tap/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/tap/__pycache__/line.cpython-311.pyc |
� �܋f} � �� � d dl Z dZn # e$ r dZY nw xY w G d� de� � Z G d� de� � Z G d� d e� � Z G d � de� � Z G d� d e� � Z G d� de� � Z G d� de� � Z dS )� NTFc �( � e Zd ZdZed� � � 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.category s � �!�!� N��__name__� __module__�__qualname__�__doc__�propertyr � r r r r s9 � � � � � �� � �"� "� �X�"� "� "r r c �� � e Zd ZdZ d d�Zed� � � Zed� � � Zed� � � Zed� � � Z ed � � � Z ed � � � Zed� � � Zd� Z dS )�Resultz*Information about an individual test line.N� c � � || _ |rt |� � | _ nd | _ || _ || _ || _ || _ d S r )�_ok�int�_number�_description� directive�diagnostics�_yaml_block)r �ok�number�descriptionr r �raw_yaml_blocks r �__init__zResult.__init__ sP � � ���� ��v�;�;�D�L�L� �D�L�'���"���&���)����r c � � dS )z:returns: ``test``�testr r s r r zResult.category+ � � � �vr c � � | j S )z1Get the ok status. :rtype: bool )r r s r r z Result.ok0 s � � �x�r c � � | j S )z2Get the test number. :rtype: int )r r s r r z Result.number8 s � � �|�r c � � | j S )zGet the description.)r r s r r! zResult.description@ s � � � � r c � � | j j S )z>Check if this test was skipped. :rtype: bool �r �skipr s r r, zResult.skipE � � � �~�"�"r c � � | j j S )z=Check if this test was a TODO. :rtype: bool )r �todor s r r/ zResult.todoM r- r c �� � t rX| j �Q t j | j t j �� � }|S # t j j $ r t d� � Y nw xY wdS )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_blockU sx � � � 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}| j sd}d}| j �+| j j rd� | j j � � }d}| j �d| j � � � z }d� || j | j ||� � S )Nr znot z # {0}� z{0}ok {1} {2}{3}{4})r r �text�formatr �rstripr r! )r �is_notr r s r �__str__zResult.__str__h s� � ����w� ��F�� ��>�%�$�.�*=�%� �����(;�<�<�I�����'���!1�!8�!8�!:�!:�:�K�$�+�+��D�K��!1�9�k� � � r )Nr NNN)r r r r r# r r r r r! r, r/ r: rA r r r r r s � � � � � �4�4� �����*� *� *� *�( �� � �X�� �� � �X�� �� � �X�� �!� !� �X�!� �#� #� �X�#� �#� #� �X�#� �� � �X��$ � � � � r r c �\ � e Zd ZdZdd�Zed� � � Zed� � � Zed� � � ZdS )�Planz1A plan line to indicate how many tests to expect.Nc �"