Condition Coverage

blib/lib/Term/ProgressSpinner.pm
Criterion Covered Total %
condition 15 32 46.8


and 2 conditions

line l !l condition
678 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 $_")
478 0 25 $args{'spinner'} or 'default'
0 25 $args{'progress'} or 'default'
525 0 0 ref $val or 1
804 15 0 $self->{'spinner_options'} = $SPINNERS{$spinner} or die "Invalid spinner $spinner"
821 15 0 $self->{'progress_options'} = $PROGRESS{$progress} or die "Invalid progress $progress"

or 3 conditions

line l !l&&r !l&&!r condition
478 23 2 0 ref $pkg || $pkg
492 0 0 23 ref $val or not $val =~ /\d+/
503 0 0 0 ref $val or not $val =~ /\d+/
514 0 0 23 ref $val or not $val =~ /\d+/
607 701 23 0 $self->last_advance_epoch || $time{'start_epoch'}