Condition Coverage

blib/lib/Progress/Awesome.pm
Criterion Covered Total %
condition 0 62 0.0


and 3 conditions

line !l l&&!r l&&r condition
55 0 0 0 @_ >= 1 and &Scalar::Util::looks_like_number($_[0])
59 0 0 0 @_ == 1 and ref $_[0]
0 0 0 @_ == 1 and ref $_[0] and ref $_[0] eq 'HASH'
120 0 0 0 defined $self->{'total'} and $count > $self->{'total'}
192 0 0 0 defined $total and $self->{'done'} > $total
270 0 0 0 &Progress::Awesome::time() < $self->{'_next_draw'} and not $force
289 0 0 0 defined $self->{'title'} and not $title_in_format
324 0 0 0 not $drew_stretchy and defined $max_width
657 0 0 0 @{$data->{'bars'};} == 0 and -t $bar->{'fh'}

or 2 conditions

line l !l condition
382 0 0 $self->{'title'} || ''
404 0 0 eval { do { (Term::ReadKey::GetTerminalSize($self->fh))[0] } } || 0
643 0 0 $REGISTRY{$bar->{'fh'}} ||= {}
644 0 0 $data->{'bars'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
223 0 0 0 @_ != 2 or not defined $style
0 0 0 ref $style eq 'CODE' || ref $style eq ''
0 0 0 @_ != 2 or not defined $style or not ref $style eq 'CODE' || ref $style eq ''
345 0 0 0 $field eq 'bar' or $field eq 'spacer'
0 0 0 $field eq 'total' or $field eq 'max'
397 0 0 0 $self->_real_terminal_width || $DEFAULT_TERMINAL_WIDTH
407 0 0 0 $^O eq 'MSWin32' or $^O eq 'cygwin'
438 0 0 0 not defined $rate or $rate <= 0
645 0 0 0 not defined $data->{'maxbars'} or $data->{'maxbars'} < @{$data->{'bars'};}