Condition Coverage

blib/lib/Term/ProgressSpinner.pm
Criterion Covered Total %
condition 17 34 50.0


and 2 conditions

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

and 3 conditions

line !l l&&!r l&&r condition
458 29 346 0 $args{$_} and $VALIDATE{'colours'}{$args{$_}} || die("Invalid color for $_")

or 2 conditions

line l !l condition
458 346 0 $VALIDATE{'colours'}{$args{$_}} || die("Invalid color for $_")
459 24 1 $args{'precision'} ||= 3
479 0 25 $args{'spinner'} or 'default'
0 25 $args{'progress'} or 'default'
526 0 0 ref $val or 1
817 15 0 $self->{'spinner_options'} = $SPINNERS{$spinner} or die "Invalid spinner $spinner"
834 15 0 $self->{'progress_options'} = $PROGRESS{$progress} or die "Invalid progress $progress"

or 3 conditions

line l !l&&r !l&&!r condition
479 23 2 0 ref $pkg || $pkg
493 0 0 23 ref $val or not $val =~ /\d+/
504 0 0 0 ref $val or not $val =~ /\d+/
515 0 0 23 ref $val or not $val =~ /\d+/
608 701 23 0 $self->last_advance_epoch || $time{'start_epoch'}