Condition Coverage

blib/lib/Term/ProgressBar.pm
Criterion Covered Total %
condition 33 47 70.2


and 3 conditions

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

or 2 conditions

line l !l condition
942 0 2 $name || ''

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