Branch Coverage

blib/lib/Text/Chump.pm
Criterion Covered Total %
branch 55 62 88.7


line true false branch
280 16 8 if length $key != 1
281 0 8 if $key =~ /^[a-z\d]$/m
312 12 41 defined $$self{'border'} ? :
313 28 25 unless defined $$opts{'border'}
314 43 10 unless $$opts{'border'} =~ /border/i
321 12 147 defined $$self{"${val}s"} ? :
322 83 76 unless defined $$opts{"${val}s"}
351 49 102 if ($token =~ s/^([^\[]{0,1})\[(.*)\]$/$2/) { }
357 4 45 unless (defined $$opts{"${typename}s"} and $$opts{"${typename}s"})
366 4 41 if (my $tmp = $self->_do_regexp_plugins($typename, $opts, @parts))
379 36 5 if (my $tmp = $self->_do_normal_plugins($typename, $opts, $url, $label, $link))
390 0 102 if (my $tmp = $self->_do_regexp_plugins('url', $opts, $orig))
396 18 84 if (my $tmp = $self->_do_normal_plugins('url', $opts, $orig))
492 5 27 if (defined $regexp) { }
493 3 2 unless defined $$self{'plugins'}{$name}{'regexp'}
572 0 73 unless @parts
580 21 52 if (&$function($one)) { }
19 33 elsif (&$function($two)) { }
598 122 25 unless defined $$self{'plugins'}{$type}{'regexp'}
603 28 4 unless defined $a
604 0 4 unless defined $b
611 4 0 unless ($@)
628 5 138 unless defined $a
629 0 138 unless defined $$self{'plugins'}{$type}{'default'}
635 111 27 unless defined $b
640 138 0 unless ($@)
692 9 13 if $link and $self->_is_url($link)
708 81 4 if $$opts{'urls'} and not $text =~ /^\+?\[.*\]$/
733 6 66 defined $$self{'target'} ? :
734 3 69 if defined $$opts{'target'}
736 6 66 defined $target ? :