Condition Coverage

blib/lib/Search/Tools/HiLiter.pm
Criterion Covered Total %
condition 21 42 50.0


and 3 conditions

line !l l&&!r l&&r condition
139 15 0 0 $self->debug and not $self->no_html
142 15 0 0 $self->debug and not $self->no_html
177 14 0 11 $XML->looks_like_html($text) and not $self->no_html
527 0 0 0 $text =~ /\b$query_re\b/i and not $text =~ /$re/i
564 31 0 0 $debug and not $found_matches
31 0 0 $debug and not $found_matches and $text =~ /$query_re/

or 2 conditions

line l !l condition
45 5 18 $self->{'tag'} ||= 'span'
46 0 23 $self->{'colors'} ||= ['#ffff99', '#99ffff', '#ffccff', '#ccccff']
47 0 23 $self->{'ttycolors'} ||= ['bold blue', 'bold red', 'bold green']
161 69 0 $self->{'_tags'}{$q}{'open'} || ''
167 69 0 $self->{'_tags'}{$q}{'close'} || ''
368 1 34 $$text =~ s/\Q$o$c\E//sig || 0
373 0 35 $$text =~ s/(&[\w#]*)\Q$o\E(?:\Q$c\E)?($safe)\Q$c\E([\w#]*;)/$1$2$3/sig || 0
536 30 1 $1 || ''
538 31 0 $3 || ''

or 3 conditions

line l !l&&r !l&&!r condition
510 1 30 0 $self->{'_compiled_query_regex'}{"$query"} || quotemeta $query
537 31 0 0 $2 || $query