Condition Coverage

blib/lib/Term/ProgressSpinner.pm
Criterion Covered Total %
condition 20 41 48.7


and 2 conditions

line l !l condition
683 16 113 $sp and scalar @{$self->progress_spinners;}

and 3 conditions

line !l l&&!r l&&r condition
459 29 346 0 $args{$_} and $VALIDATE{'colours'}{$args{$_}} || die("Invalid color for $_")
463 0 25 0 ref $output eq "GLOB" and tied *$output

or 2 conditions

line l !l condition
459 346 0 $VALIDATE{'colours'}{$args{$_}} || die("Invalid color for $_")
460 24 1 $args{'precision'} ||= 3
462 23 2 $args{'output'} // \*STDERR
483 0 25 $args{'spinner'} or "default"
0 25 $args{'progress'} or "default"
530 0 0 ref $val or Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.42.0/B/Deparse.pm line 5762.
821 15 0 $self->{'spinner_options'} = $SPINNERS{$spinner} or die "Invalid spinner $spinner"
838 15 0 $self->{'progress_options'} = $PROGRESS{$progress} or die "Invalid progress $progress"
1010 0 0 $opts{'interval'} // "0.1"

or 3 conditions

line l !l&&r !l&&!r condition
483 23 2 0 ref $pkg || $pkg
497 0 0 23 ref $val or not $val =~ /\d+/
508 0 0 0 ref $val or not $val =~ /\d+/
519 0 0 23 ref $val or not $val =~ /\d+/
612 701 23 0 $self->last_advance_epoch || $time{'start_epoch'}