Your IP : 216.73.216.213
B
.��V � @ s d dl Z G dd� de�ZdS )� Nc @ sp e Zd ZdZe�dejejB �Ze�dejejB �Z dd� Z
edd� �Zedd � �Z
ed
d� �Zedd
� �ZdS )� Directivez,A representation of a result line directive.zt^SKIP\S*
(?P<whitespace>\s*) # Optional whitespace.
(?P<reason>.*) # Slurp up the rest.z�^TODO\b # The directive name
(?P<whitespace>\s*) # Immediately following must be whitespace.
(?P<reason>.*) # Slurp up the rest.c C s� || _ d| _d| _d| _| j�|�}|r:d| _|�d�| _| j�|�}|r||�d�r\d| _n|�d�dkrpd| _|�d�| _dS )z�Initialize the directive by parsing the text.
The text is assumed to be everything after a '#\s*' on a result line.
FNT�reason�
whitespace� )�_text�_skip�_todo�_reason�skip_pattern�match�group�todo_pattern)�self�textr � r �>/opt/alt/python37/lib/python3.7/site-packages/tap/directive.py�__init__ s
zDirective.__init__c C s | j S )zGet the entire text.)r )r r r r r - s zDirective.textc C s | j S )z&Check if the directive is a SKIP type.)r )r r r r �skip2 s zDirective.skipc C s | j S )z&Check if the directive is a TODO type.)r )r r r r �todo7 s zDirective.todoc C s | j S )z!Get the reason for the directive.)r )r r r r r <