Branch Coverage

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


line true false branch
157 0 9 unless defined(my $pid = fork)
160 6 3 if ($pid)
184 1 2 if (defined $windowspec)
189 1 0 if ($window{'hastop'})
195 1 0 if ($window{'hasbot'})
209 0 22 if &openhandle($passthru)
211 3 19 if ($firstline)
212 1 2 if defined $window_top
213 1 2 if defined $window_bot
221 4 18 if (defined $style) { }
225 0 4 if (length $line < $buf_width and $line_end)
235 14 4 $line_end ? :
245 20 2 if $height > 0
247 9 13 if @buf > $buf_height
248 14 8 if defined $window_top
251 14 8 if defined $window_bot
254 0 3 if &openhandle($passthru)
256 1 2 if ($hide)
335 873 344 if ($text_length < $len) { }
338 0 873 if ($text_length > $len)
350 6 12 if ($pad and $text_length < $len)
372 0 8 /\s/u ? :