Branch Coverage

blib/lib/File/CodeSearch/Highlighter.pm
Criterion Covered Total %
branch 25 28 89.2


line true false branch
71 6 13 if $self->highlight_re
90 13 22 if ($i % 2)
102 5 4 if (length $parts[-1] < $chars * 2)
106 5 4 $limit - $total > $joins * 2 ? :
111 5 4 if (length $parts[-1] < $chars * 2)
117 13 22 if ($i % 2) { }
122 7 15 if ($self->snip and length $string > $self->limit)
125 1 6 if ($total < $limit)
129 1 6 if ($total < $limit)
135 7 0 if ($chars_front_tmp + $chars_back_tmp < length $parts[$i])
138 0 7 defined $front ? :
0 7 defined $back ? :
146 8 1 unless $string =~ /\n/msx
147 8 1 unless $out =~ /\n/msx