Branch Coverage

blib/lib/Text/Aligner.pm
Criterion Covered Total %
branch 56 66 84.8


line true false branch
23 2 22 ref $_ eq 'SCALAR' ? :
24 4 3 if (defined wantarray) { }
25 0 16 ref $_ eq 'SCALAR' ? :
26 3 1 if wantarray
30 2 6 ref $_ eq 'SCALAR' ? :
53 3 68 if (not ref $spec and $spec =~ s/^auto/num/) { }
65 0 0 unless defined $obj
67 0 0 if (ref $obj) { }
82 5 477 unless defined $obj
86 482 0 unless ref $obj
88 482 0 ref $wmeth ? :
89 482 0 ref $pmeth ? :
99 102 632 unless defined $lr[0] and defined $lr[1]
119 30 0 defined $_ ? :
130 185 499 $repeat_count > 0 ? :
143 39 303 if $l_pad < 0
144 51 291 if $r_pad < 0
156 288 54 if ($al->_status)
171 2 80 if (ref $_ eq 'Regexp') { }
175 7 17 /$regex/ ? :
181 11 69 if (_is_number($_)) { }
8 61 elsif ($_ =~ /^(?:num|point)(?:\((.*))?/) { }
185 2 6 defined $1 ? :
187 6 2 unless length $point
199 9 170 unless defined $x
200 105 65 unless $x =~ /\d/
201 51 14 if $x =~ /^-?\d+\.?\d*$/
240 25 27 _is_number($str) ? :
244 28 24 if $aa->{'num'}->_status
245 28 24 if $aa->{'other'}->_status
276 65 0 if (exists $mk->{'seen'}{$val})
278 63 2 unless (--$seen->{$val})
280 62 1 if ($mk->{'max'} == $val)