Branch Coverage

blib/lib/Dancer/SearchApp/HTMLSnippet.pm
Criterion Covered Total %
branch 12 22 54.5


line true false branch
50 0 9 unless @_ <= 4
0 9 unless @_ >= 4
56 8 1 if (substr($html, $start - $fudge - 1, $fudge + 2) =~ /\s+(.*)$/)
61 9 0 if substr($html, $end, $fudge) =~ /(.*)\s+/
84 0 2 unless @_ >= 1
0 2 unless @_ & 1
106 2 0 if (@highlights)
118 23 8 if ($snippet_length < $options{'max_length'}) { }
134 1 1 unless (@snippets)
154 0 0 unless @_ <= 2
0 0 unless @_ >= 2