Branch Coverage

blib/lib/File/CodeSearch/Highlighter.pm
Criterion Covered Total %
branch 27 32 84.3


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])
136 0 7 $chars_front_tmp > 0 ? :
137 0 7 $chars_back_tmp > 0 ? :
138 7 0 defined $front ? :
7 0 defined $back ? :
150 8 1 unless $string =~ /\n/msx
151 8 1 unless $out =~ /\n/msx