line |
true |
false |
branch |
18
|
13 |
35 |
if ($len <= $len_marker) |
22
|
3 |
32 |
if ($truncate eq 'left') { } |
|
12 |
20 |
elsif ($truncate eq 'middle') { } |
|
7 |
13 |
elsif ($truncate eq 'ends') { } |
31
|
2 |
5 |
if ($len <= 2 * $len_marker) |
53
|
32 |
137 |
if (defined $1) { } |
|
17 |
120 |
elsif (defined $3) { } |
|
120 |
0 |
elsif (defined $4) { } |
54
|
0 |
32 |
unless length $2 |
58
|
0 |
17 |
unless length $3 |
62
|
60 |
60 |
unless length $4 |
67
|
4 |
56 |
unless @parts and $len > 0 |
69
|
32 |
73 |
if (defined $parts_attrs[$i]) { } |
71
|
15 |
17 |
if $parts_attrs[$i] =~ /\btruncate=(?:"([^"]*)"|(\S+))/ |
73
|
15 |
17 |
if $parts_attrs[$i] =~ /\bmarker=(?:"([^"]*)"|(\S+))/ |
75
|
32 |
0 |
if $parts_attrs[$i] =~ /\bprio(?:rity)?=(?:"([^"]*)"|(\S+))/ |
93
|
56 |
56 |
if ($all_parts_len <= $len) |
102
|
69 |
44 |
if not defined $highest_prio or $highest_prio < $_->{'prio'} |
107
|
61 |
52 |
if ($parts_attrs[$i]{'prio'} == $highest_prio) |
113
|
10 |
46 |
if ($all_parts_len - $high_parts_len >= $len) |
144
|
0 |
51 |
if ($to_elide <= 0) { } |
|
3 |
48 |
elsif ($part_len <= $to_elide) { } |