Branch Coverage

blib/lib/Text/Trac/InlineNode.pm
Criterion Covered Total %
branch 35 44 79.5


line true false branch
62 9642 4821 if defined $handler->{'pattern'}
114 21 102 if ($match =~ s/^!//) { }
120 110 961 if ($match =~ /$token/x)
122 25 85 if (ref $formatter) { }
124 8 76 if $match =~ /^\[?$_/
140 20 20 if ($self->_is_open($open_tag)) { }
165 22 2 if $tag eq $_
177 2 2 if ($is_open)
184 2 2 unless ($is_open)
204 4 0 $self->{'context'}{'class'} ? :
263 8 12 unless ($label)
264 8 0 if ($target) { }
265 0 8 if ($target =~ m[^//]) { }
281 5 35 if (defined $target and $target =~ m[^//] || $target eq 'mailto') { }
286 35 0 if (defined $ns)
289 33 2 $handler ? :
296 0 5 $title ? :
301 5 0 $self->{'context'}{'class'} ? :
302 5 0 $self->{'context'}{'class'} ? :
303 5 0 $self->{'context'}{'span'} ? :
304 5 0 if (not $url =~ /^$local/ && $local)
314 1 4 if ($name =~ /br/i) { }