Branch Coverage

blib/lib/Log/Progress/RenderTTY.pm
Criterion Covered Total %
branch 18 38 47.3


line true false branch
24 1 0 unless my $stty = `stty -a`
28 0 1 if $self->listen_resize and $cols
40 0 0 if defined $self->_winch_handler
45 0 0 if defined $self
46 0 0 if defined $existing
63 3 1 if ($state->{'step'})
67 0 11 if length($_->{'title'} || '') > $dims->{'title_width'}
92 0 1 defined $self->_prev_output ? :
95 0 1 @prev > $rows - 1 ? :
96 0 1 @prev > $rows - 1 ? :
104 0 1 if ($cursor_row > $dest_row) { }
0 1 elsif ($dest_row > $cursor_row) { }
113 0 0 if ($prev[$i] ne $next[$i])
135 3 1 unless defined $message
137 1 3 if defined $state->{'total'} and defined $state->{'current'}
150 0 11 unless defined $message
152 4 7 if defined $state->{'total'} and defined $state->{'current'}
164 0 1 if ($self->_winch_handler)
165 0 0 if ($SIG{'WINCH'} eq $self->_winch_handler->[0]) { }