Branch Coverage

blib/lib/Term/Scroller.pm
Criterion Covered Total %
branch 36 44 81.8


line true false branch
155 0 9 unless defined(my $pid = fork)
158 6 3 if ($pid)
183 1 2 if (defined $windowspec)
188 1 0 if ($window{'hastop'})
194 1 0 if ($window{'hasbot'})
205 0 22 if &openhandle($passthru)
208 3 19 if ($firstline)
209 1 2 if defined $window_top
210 1 2 if defined $window_bot
218 4 18 if (defined $style) { }
222 0 4 if (length $line < $buf_width and $line_end)
232 14 4 $line_end ? :
242 20 2 if $height > 0
244 9 13 if @buf > $buf_height
245 14 8 if defined $window_top
248 14 8 if defined $window_bot
251 0 3 if &openhandle($passthru)
253 1 2 if ($hide)
331 873 344 if ($text_length < $len) { }
334 0 873 if ($text_length > $len)
346 6 12 if ($pad and $text_length < $len)
368 0 8 /\s/u ? :