졤 ( d dl Z G d d ZdS ) Nc e Zd ZdZ ej dej ej z Z ej dej ej z Z d Z
ed Zed Z
ed Zed Zd S )
Directivez,A representation of a result line directive.zt^SKIP\S*
(?P\s*) # Optional whitespace.
(?P.*) # Slurp up the rest.z^TODO\b # The directive name
(?P\s*) # Immediately following must be whitespace.
(?P.*) # Slurp up the rest.c || _ d| _ d| _ d| _ | j | }|r!d| _ | d | _ | j | }|rY| d rd| _ n | d dk rd| _ | d | _ dS dS )zInitialize the directive by parsing the text.
The text is assumed to be everything after a '#\s*' on a result line.
FNTreason
whitespace )_text_skip_todo_reasonskip_patternmatchgrouptodo_pattern)selftextr s _/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/tap/directive.py__init__zDirective.__init__ s
!''-- 1DJ ;;x00DL!''-- 1{{<((
&!
;;x((B..!%DJ ;;x00DLLL 1 1 c | j S )zGet the entire text.)r r s r r zDirective.text- zr c | j S )z&Check if the directive is a SKIP type.)r
r s r skipzDirective.skip2 r r c | j S )z&Check if the directive is a TODO type.)r r s r todozDirective.todo7 r r c | j S )z!Get the reason for the directive.)r r s r r zDirective.reason<