Condition Coverage

blib/lib/Text/Shorten.pm
Criterion Covered Total %
condition 81 107 75.7


and 3 conditions

line !l l&&!r l&&r condition
25 9561 0 0 $scalar =~ /^['"]./ and substr($scalar, 0, 1) eq substr($scalar, -1)
69 330965 324177 7331 $d and $d2 eq ''
75 143585 511557 0 $e and $exp eq '' || $exp == 0
80 650018 0 606 $d1 eq '' || $d1 == 0 and $d2 ne ''
82 600 6 6342 $d1 == 0 and $d2 ne ''
92 506697 4973 138348 $e eq '' and $d2 ne ''
95 64576 8280 8872 $c == 5 and $lastc
108 182461 0 329209 $d eq '' and $d2 eq ''
111 133784 3247 3044 $c == 5 and $lastc
125 84938 11485 11771 $c == 5 and $lastc
140 416 8139 6136 $e and $d
8555 0 6136 $e and $d and $d1 ne ''
8139 1006 5130 $e and $d and $d1 ne '' and $d1 > 9
167 1 3 1 @key == 1 and $key[0] != 0
183 108 216 1 $prio[$i] < 8 and $len > $maxlen
201 2 119 203 $i > 0 && !$inc[$i - 1]
0 0 324 $i < $n - 1 && !$inc[$i + 1]
202 0 0 324 defined $$array[$i] && length($$array[$i]) + $seplen + $dotslen * ($excl - 1)
224 3 19 101 $i > 0 && !$inc[$i - 1]
2 0 121 $i < $n - 1 && !$inc[$i + 1]
225 0 0 123 defined $$array[$i] && length($$array[$i]) + $seplen + $dotslen * ($excl - 1)
310 301 1 48 $len + $dlen > $maxlen and @r > 0

or 2 conditions

line l !l condition
53 6391 3170 $sign ||= ''
54 8981 580 $d1 ||= '0'
56 8426 1135 $e ||= ''
58 8426 1135 $e || 'e'
71 7331 0 $d1 ||= '0'
286 0 0 $key{$b} || 0
0 0 $key{$a} || 0

or 3 conditions

line l !l&&r !l&&!r condition
75 0 4518 507039 $exp eq '' || $exp == 0
80 0 606 650018 $d1 eq '' || $d1 == 0
86 6078 264 0 $e ||= $E
95 56620 0 81728 $c > 5 or $c == 5 and $lastc
111 189134 0 140075 $c > 5 or $c == 5 and $lastc
117 324236 4973 0 $e ||= $E
125 74267 0 108194 $c > 5 or $c == 5 and $lastc
167 2 0 5 @key > 1 or @key == 1 and $key[0] != 0
204 108 14 202 $prio[$i] >= 8 or $len + $dlen <= $maxlen