Branch Coverage

blib/lib/Term/ProgressSpinner.pm
Criterion Covered Total %
branch 60 152 39.4


line true false branch
456 0 25 ref $_[0] ? :
492 23 333 if (defined $val)
493 0 23 if (ref $val or not $val =~ /\d+/)
503 0 46 if (defined $val)
504 0 0 if (ref $val or not $val =~ /\d+/)
514 23 46 if (defined $val)
515 0 23 if (ref $val or not $val =~ /\d+/)
525 0 1190 if (defined $val)
526 0 0 if (ref $val or 1)
536 23 0 $self->terminal_height ? :
538 23 0 if ($self->terminal_line) { }
0 0 elsif ($^O eq 'MSWin32') { }
552 0 23 if ($x == $rows)
569 23 0 if $total
582 633 368 if ($ps) { }
583 520 113 if ($ps->counter < $ps->total) { }
590 520 0 if $ps->slowed
591 110 410 unless $prevent
599 352 16 scalar @{$self->{'progress_spinners'};} ? :
620 724 462 if ($ps) { }
633 718 6 $options{'percent'} ? :
636 0 724 $options{'elapsed_seconds'} ? :
679 112 17 if ($sp and scalar @{$self->progress_spinners;}) { }
682 23 132 if ($sp->progress_spinner_index == $_->progress_spinner_index)
697 17 256 if (defined $_[1])
705 1925 0 if (defined $val)
719 0 724 if (defined $val)
720 0 0 if (ref $val)
730 0 2253 if (defined $val)
738 23 1357 if (defined $val)
739 0 23 unless ($val =~ /\d+/)
750 2 1040 if (defined $val)
751 0 2 unless ($val =~ /\d+(\.\d+)?/)
761 520 1877 if (defined $val)
762 0 520 unless ($val =~ /\d+/)
772 23 724 if (defined $val)
773 0 23 unless ($val =~ /\d+(\.\d+)?/)
783 724 724 if (defined $val)
784 0 724 unless ($val =~ /\d+(\.\d+)?/)
794 0 3614 if (defined $val)
795 0 0 unless ($val =~ /\d+/)
806 0 14480 if (defined $val)
807 0 0 unless ($VALIDATE{'colours'}{$val})
817 15 1244 if $spinner
823 0 724 if (defined $val)
824 0 0 unless ($VALIDATE{'colours'}{$val})
834 15 724 if $progress
840 0 724 if (defined $val)
841 0 0 unless ($VALIDATE{'colours'}{$val})
851 0 724 if (defined $val)
859 0 0 if (defined $val)
860 0 0 unless ($VALIDATE{'colours'}{$val})
870 0 0 if (defined $val)
871 0 0 unless ($VALIDATE{'colours'}{$val})
881 0 0 if (defined $val)
882 0 0 unless ($VALIDATE{'colours'}{$val})
892 0 0 if (defined $val)
893 0 0 unless ($VALIDATE{'colours'}{$val})
903 0 0 if (defined $val)
904 0 0 unless ($VALIDATE{'colours'}{$val})
914 0 0 if (defined $val)
915 0 0 unless ($VALIDATE{'colours'}{$val})
925 0 0 if (defined $val)
926 0 0 unless ($VALIDATE{'colours'}{$val})
936 0 0 if (defined $val)
937 0 0 unless ($VALIDATE{'colours'}{$val})
947 0 0 if (defined $val)
948 0 0 unless ($VALIDATE{'colours'}{$val})
958 0 0 if (defined $val)
959 0 0 unless ($VALIDATE{'colours'}{$val})
969 0 0 if (defined $val)
970 0 0 unless ($VALIDATE{'colours'}{$val})
980 0 0 if (defined $val)
981 0 0 unless ($VALIDATE{'colours'}{$val})
991 0 0 if (defined $val)
992 0 0 unless ($VALIDATE{'colours'}{$val})