Your IP : 216.73.216.85


Current Path : /opt/alt/python37/lib/python3.7/site-packages/tap/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/tap/__pycache__/line.cpython-37.pyc

B

.��VQ�@stGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
d�de�ZGdd
�d
e�ZdS)c@seZdZdZedd��ZdS)�LinezhBase type for TAP data.

    TAP is a line based protocol. Thus, the most primitive type is a line.
    cCst�dS)N)�NotImplementedError)�self�r�9/opt/alt/python37/lib/python3.7/site-packages/tap/line.py�category	sz
Line.categoryN)�__name__�
__module__�__qualname__�__doc__�propertyrrrrrrsrc@sjeZdZdZddd�Zedd��Zedd	��Zed
d��Zedd
��Z	edd��Z
edd��Zdd�ZdS)�Resultz*Information about an individual test line.N�cCs2||_|rt|�|_nd|_||_||_||_dS)N)�_ok�int�_number�_description�	directive�diagnostics)r�ok�number�descriptionrrrrr�__init__szResult.__init__cCsdS)z:returns: ``test``�testr)rrrrrszResult.categorycCs|jS)z1Get the ok status.

        :rtype: bool
        )r)rrrrr#sz	Result.okcCs|jS)z2Get the test number.

        :rtype: int
        )r)rrrrr+sz
Result.numbercCs|jS)zGet the description.)r)rrrrr3szResult.descriptioncCs|jjS)z>Check if this test was skipped.

        :rtype: bool
        )r�skip)rrrrr8szResult.skipcCs|jjS)z=Check if this test was a TODO.

        :rtype: bool
        )r�todo)rrrrr@szResult.todocCs\d}|jsd}d}|jdk	r*d�|jj�}d}|jdk	rFd|j��}d�||j|j||�S)Nr
znot z # {0}�
z{0}ok {1} - {2}{3}{4})rr�format�textr�rstriprr)r�is_notrrrrr�__str__Hs

zResult.__str__)Nr
NN)
rrr	r
rrrrrrrrr rrrrrs
rc@s>eZdZdZddd�Zedd��Zedd��Zed	d
��ZdS)�Planz1A plan line to indicate how many tests to expect.NcCs||_||_dS)N)�_expected_testsr)r�expected_testsrrrrrYsz
Plan.__init__cCsdS)z:returns: ``plan``�planr)rrrrr]sz
Plan.categorycCs|jS)z?Get the number of expected tests.

        :rtype: int
        )r")rrrrr#bszPlan.expected_testscCs|jjS)zGCheck if this plan should skip the file.

        :rtype: bool
        )rr)rrrrrjsz	Plan.skip)N)	rrr	r
rrrr#rrrrrr!Vs

r!c@s0eZdZdZdd�Zedd��Zedd��ZdS)	�
Diagnosticz7A diagnostic line (i.e. anything starting with a hash).cCs
||_dS)N)�_text)rrrrrrvszDiagnostic.__init__cCsdS)z:returns: ``diagnostic``�
diagnosticr)rrrrryszDiagnostic.categorycCs|jS)z
Get the text.)r&)rrrrr~szDiagnostic.textN)rrr	r
rrrrrrrrr%ssr%c@s0eZdZdZdd�Zedd��Zedd��ZdS)	�Bailz:A bail out line (i.e. anything starting with 'Bail out!').cCs
||_dS)N)�_reason)r�reasonrrrr�sz
Bail.__init__cCsdS)z:returns: ``bail``�bailr)rrrrr�sz
Bail.categorycCs|jS)zGet the reason.)r))rrrrr*�szBail.reasonN)rrr	r
rrrr*rrrrr(�sr(c@s0eZdZdZdd�Zedd��Zedd��ZdS)	�Versionz3A version line (i.e. of the form 'TAP version 13').cCs
||_dS)N)�_version)r�versionrrrr�szVersion.__init__cCsdS)z:returns: ``version``r.r)rrrrr�szVersion.categorycCs|jS)z5Get the version number.

        :rtype: int
        )r-)rrrrr.�szVersion.versionN)rrr	r
rrrr.rrrrr,�sr,c@seZdZdZedd��ZdS)�Unknownz~A line that represents something that is not a known TAP line.

    This exists for the purpose of a Null Object pattern.
    cCsdS)z:returns: ``unknown``�unknownr)rrrrr�szUnknown.categoryN)rrr	r
rrrrrrr/�sr/N)�objectrrr!r%r(r,r/rrrr�<module>s
H