Branch Coverage

blib/lib/Text/Shorten.pm
Criterion Covered Total %
branch 0 104 0.0


line true false branch
23 0 0 if length $scalar < $maxlen
25 0 0 if ($scalar =~ /^['"]./ and substr($scalar, 0, 1) eq substr($scalar, -1))
43 0 0 if ("$d1$d2" eq '')
55 0 0 unless defined $d2
57 0 0 unless defined $exp
60 0 0 if length "$sign$d1$d$d2$e$exp" > $maxlen
61 0 0 if length "$sign$d1$d$d2$e$exp" > $maxlen
62 0 0 if length "$sign$d1$d2$e$exp" > $maxlen
63 0 0 if length "$sign$d1$d$d2$exp" > $maxlen
64 0 0 if length "$sign$d1$d$d2$e$exp" > $maxlen
69 0 0 if ($d and $d2 eq '')
75 0 0 if ($e and $exp eq '' || $exp == 0)
80 0 0 if ($d1 eq '' || $d1 == 0 and $d2 ne '')
92 0 0 if ($e eq '' and $d2 ne '')
95 0 0 if ($c > 5 or $c == 5 and $lastc) { }
98 0 0 if (length $new_d2 > length $d2)
108 0 0 if ($d eq '' and $d2 eq '')
111 0 0 if ($c > 5 or $c == 5 and $lastc) { }
122 0 0 if ($d2 ne '')
125 0 0 if ($c > 5 or $c == 5 and $lastc) { }
128 0 0 if (length $new_d2 > length $d2)
139 0 0 if $d2 eq ''
145 0 0 if $d2 eq ''
154 0 0 if (not defined $seplen) { }
0 0 elsif ($seplen =~ /\D/) { }
162 0 0 if @key == 0
163 0 0 if $_ >= 0
166 0 0 $n > 0 ? :
167 0 0 if (@key > 1 or @key == 1 and $key[0] != 0) { }
175 0 0 if ($n > 0)
182 0 0 unless $prio[$b] <=> $prio[$a]
183 0 0 if $prio[$i] < 8 and $len > $maxlen
204 0 0 if ($prio[$i] >= 8 or $len + $dlen <= $maxlen) { }
214 0 0 if ++$insert_fails > 20
223 0 0 if $len > $maxlen
227 0 0 if ($len + $dlen <= $maxlen) { }
231 0 0 if ++$insert_fails > 100
241 0 0 if ($i < $explicit[0])
248 0 0 if ($i < $n)
257 0 0 if (not defined $sep1) { }
0 0 elsif ($sep1 =~ /\D/) { }
262 0 0 if (not defined $sep2) { }
0 0 elsif ($sep2 =~ /\D/) { }
277 0 0 if $total_len > $maxlen
279 0 0 if ($total_len <= $maxlen)
290 0 0 if (@key > 0) { }
0 0 elsif (100 > keys %$hash or $HASHREPR_SORTKEYS) { }
292 0 0 if (100 > keys %$hash) { }
294 0 0 unless ($key{$b} || 0) <=> ($key{$a} || 0)
311 0 0 if @r > 0 and $len + $dlen > $maxlen
316 0 0 if $hk1_skip_key and defined $key{$key}
318 0 0 if @r > 0 and $len + $dlen > $maxlen