Branch Coverage

blib/lib/Time/Progress.pm
Criterion Covered Total %
branch 18 40 45.0


line true false branch
40 0 4 unless @_ == 0 or @_ % 2 == 0
45 0 4 unless $ATTRS{$_}
46 4 0 if defined $h{$_}
85 0 11 unless $start > 0
86 0 11 if $now < $start
87 0 11 unless $format
97 0 11 unless defined $cur
98 0 11 unless $sdelta > 0 and $sdelta < 1
103 5 6 if ($format =~ /%(\d*)[bB]/)
106 0 5 if $bl eq "" or $bl < 1
116 11 0 if ($min <= $cur and $cur <= $max or $min >= $cur and $cur >= $max)
118 2 9 if ($cur - $min == 0) { }
126 0 0 if ($self->{'smoothing'} and $last_e and $last_e < $e and ($e - $last_e) / $last_e < $sdelta)
130 0 9 if $e < 0
131 0 9 if $self->{'smoothing'}
138 11 0 if ($max - $min != 0)
145 0 11 if time - $self->{'start'} > 0
146 0 0 if $p > 1 and $s > 0 and $self->{'min_speed'} eq 'n' || $self->{'min_speed'} > $s
147 0 0 if $p > 1 and $s > 0 and $self->{'max_speed'} eq 'a' || $self->{'max_speed'} < $s
170 0 0 unless $len ne "" and $len > 0