Condition Coverage

blib/lib/Term/ProgressBar.pm
Criterion Covered Total %
condition 32 45 71.1


and 3 conditions

line !l l&&!r l&&r condition
507 3 1 0 $config{'term'} and not defined $config{'term_width'}
557 3 16 1 $config{'term'} && $target > $config{'bar_width'} ** 1.5
695 11 9 0 $self->term and $_[0] < 5
708 3 13 3 defined $self->term_width && $self->term_width < $target
723 19 1 0 defined $type and not exists {linear => 1}->{$type}
815 2 2 0 not $self->remove and $input_so_far < 0
857 298 1 11 defined $ETA and $ratio > 0
901 117 188 5 defined $_ and $_ eq $to_print
911 300 10 0 $so_far >= $target and $self->remove
310 0 0 $so_far >= $target and $self->remove and not $self->pb_ended
920 101 0 1 $so_far == 0 and defined $name
101 0 1 $so_far == 0 and defined $name and not $self->name_printed

or 3 conditions

line l !l&&r !l&&!r condition
325 0 0 0 $^O eq 'MSWin32' or $^O eq 'cygwin'
808 4 0 20 $input_so_far <= 0 or $input_so_far == $self->last_update
812 2 1 1 not $self->remove or $input_so_far >= 0