Branch Coverage

blib/lib/UI/Dialog/Backend/ASCII.pm
Criterion Covered Total %
branch 6 290 2.0


line true false branch
41 2 1 @_ ? :
0 3 ref $_[0] eq 'HASH' ? :
49 0 3 if ($CFG_PATH) { }
3 0 elsif ($ENV{'PATH'}) { }
50 0 0 if (ref $CFG_PATH eq 'ARRAY') { }
0 0 elsif ($CFG_PATH =~ /:/) { }
0 0 elsif (-d $CFG_PATH) { }
95 0 3 exists $cfg->{'trust-input'} && $cfg->{'trust-input'} == 1 ? :
111 0 0 if (ref $text eq 'ARRAY') { }
0 0 elsif ($text =~ /\\n/) { }
126 0 0 @_ % 2 ? :
129 0 0 unless $args->{$def}
134 0 0 $args->{'path'} ? :
0 0 $args->{'file'} ? :
0 0 $args->{'filename'} ? :
154 0 0 if ($self->{'_opts'}{'extra-button'} or $self->{'_opts'}{'extra-label'})
157 0 0 unless ($self->{'_opts'}{'nocancel'})
160 0 0 if ($self->{'_opts'}{'help-button'} or $self->{'_opts'}{'help-label'})
174 0 0 if $cfg->{'extra-button'}
175 0 0 if $cfg->{'extra-label'}
176 0 0 if $extra and $extra ne ' '
177 0 0 if $cfg->{'help-button'}
178 0 0 if $cfg->{'help-label'}
179 0 0 if $help and $help ne ' '
180 0 0 unless $cfg->{'nocancel'}
181 0 0 if $cfg->{'cancellabel'}
182 0 0 if $cancel and $cancel ne ' '
193 0 0 if ($cfg->{'literal'}) { }
244 0 0 if $cfg->{'usestderr'}
249 0 0 unless not $cfg->{'usestderr'}
259 0 0 if ($cfg->{'literal'}) { }
315 0 0 if $cfg->{'usestderr'}
320 0 0 unless not $cfg->{'usestderr'}
330 0 0 if ($cfg->{'literal'}) { }
345 0 0 if ($cfg->{'wm'}) { }
347 0 0 if ($menu->[$i] and $menu->[$i] =~ /on/i) { }
358 0 0 if (not $mark and $menu->[$i] and $menu->[$i] =~ /on/i) { }
411 0 0 if $cfg->{'usestderr'}
416 0 0 unless not $cfg->{'usestderr'}
423 0 0 if ($stderr) { }
440 0 0 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
441 0 0 if ($_[0] and $_[0] eq 'caller')
446 0 0 if $self->{'defaultno'}
452 0 0 if (not $RESP and $args->{'defaultno'}) { }
0 0 elsif (not $RESP || $args->{'defaultno'}) { }
458 0 0 if ($RESP =~ /^(y|yes)$/i) { }
470 0 0 if $self->state eq 'OK'
479 0 0 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
480 0 0 if ($_[0] and $_[0] eq 'caller')
493 0 0 if ($args->{'maxinput'}) { }
499 0 0 if ($length > $args->{'maxinput'})
516 0 0 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
517 0 0 if ($_[0] and $_[0] eq 'caller')
523 0 0 unless -x $args->{'stty'}
534 0 0 if ($self->_is_bsd) { }
541 0 0 if $key =~ /\n/
542 0 0 if ($key =~ /^\x1b$/) { }
0 0 elsif ($key =~ /^(?:\x08|\x7f)$/) { }
546 0 0 if ($key2 =~ /^\x5b$/) { }
548 0 0 if ($key3 =~ /^\x33$/) { }
550 0 0 if ($key4 =~ /^\x7e$/) { }
555 0 0 if ($args->{'usestderr'}) { }
580 0 0 if ($args->{'usestderr'}) { }
588 0 0 if ($args->{'usestderr'}) { }
597 0 0 if ($self->_is_bsd) { }
603 0 0 if ($args->{'maxinput'}) { }
609 0 0 if ($length > $args->{'maxinput'})
627 0 0 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
628 0 0 if ($_[0] and $_[0] eq 'caller')
635 0 0 $args->{'timeout'} ? :
0 0 $args->{'wait'} ? :
649 0 0 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
650 0 0 if ($_[0] and $_[0] eq 'caller')
670 0 0 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
671 0 0 if ($_[0] and $_[0] eq 'caller')
676 0 0 if (-r $args->{'path'}) { }
679 0 0 if ($ENV{'PAGER'} and -x $ENV{'PAGER'}) { }
0 0 elsif (-x $args->{'pager'}) { }
711 0 0 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
712 0 0 if ($_[0] and $_[0] eq 'caller')
716 0 0 ref $args->{'list'} ? :
723 0 0 if ref $args->{'menu'} eq 'ARRAY'
729 0 0 if (@{$menu;} >= 60) { }
749 0 0 if ($rs =~ /^:\?$/i) { }
0 0 elsif ($rs =~ /^:(esc|escape)$/i) { }
0 0 elsif ($args->{'extra-button'} || $args->{'extra-label'} and $rs =~ /^:(e|extra)$/i) { }
0 0 elsif ($args->{'help-button'} and $rs =~ /^:(h|help)$/i) { }
0 0 elsif (not $args->{'nocancel'} and $rs =~ /^:(c|cancel)$/i) { }
0 0 elsif ($rs =~ /^:pg\s*(\d+)$/i) { }
0 0 elsif ($rs =~ /^:(n|next)$/i) { }
0 0 elsif ($rs =~ /^:(p|prev)$/i) { }
779 0 0 if ($p <= @{$realm;} and $p > 0)
785 0 0 if ($pg < @{$realm;}) { }
794 0 0 if ($pg > 1) { }
803 0 0 if (@_ = grep({/^\Q$rs\E$/i;} @{$valid;})) { }
825 0 0 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
826 0 0 if ($_[0] and $_[0] eq 'caller')
832 0 0 if (ref $menulist eq 'ARRAY')
835 0 0 if (ref $item eq 'ARRAY') { }
836 0 0 if @$item == 3
849 0 0 if ref $args->{'menu'} eq 'ARRAY'
851 0 0 if ref $args->{'menu'} eq 'ARRAY'
857 0 0 if (@{$menu;} >= 90) { }
877 0 0 if ($rs =~ /^:\?$/i) { }
0 0 elsif ($rs =~ /^:(esc|escape)$/i) { }
0 0 elsif ($args->{'extra-button'} || $args->{'extra-label'} and $rs =~ /^:(e|extra)$/i) { }
0 0 elsif ($args->{'help-button'} || $args->{'help-label'} and $rs =~ /^:(h|help)$/i) { }
0 0 elsif (not $args->{'nocancel'} and $rs =~ /^:(c|cancel)$/i) { }
0 0 elsif ($rs =~ /^:pg\s*(\d+)$/i) { }
0 0 elsif ($rs =~ /^:(n|next)$/i) { }
0 0 elsif ($rs =~ /^:(p|prev)$/i) { }
908 0 0 if ($p <= @{$realm;} and $p > 0)
913 0 0 if ($pg < @{$realm;}) { }
921 0 0 if ($pg > 1) { }
932 0 0 if (@_ = grep({/^\Q$opt\E$/i;} @{$valid;}))
936 0 0 if (@opts == @good)
958 0 0 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
959 0 0 if ($_[0] and $_[0] eq 'caller')
965 0 0 if (ref $menulist eq 'ARRAY')
968 0 0 if (ref $item eq 'ARRAY') { }
969 0 0 if @$item == 3
980 0 0 if ref $args->{'menu'} eq 'ARRAY'
982 0 0 if ref $args->{'menu'} eq 'ARRAY'
988 0 0 if (@{$menu;} >= 90) { }
1007 0 0 if ($rs =~ /^:\?$/i) { }
0 0 elsif ($rs =~ /^:(esc|escape)$/i) { }
0 0 elsif ($args->{'extra-button'} || $args->{'extra-label'} and $rs =~ /^:(e|extra)$/i) { }
0 0 elsif ($args->{'help-button'} || $args->{'help-label'} and $rs =~ /^:(h|help)$/i) { }
0 0 elsif (not $args->{'nocancel'} and $rs =~ /^:(c|cancel)$/i) { }
0 0 elsif ($rs =~ /^:pg\s*(\d+)$/i) { }
0 0 elsif ($rs =~ /^:(n|next)$/i) { }
0 0 elsif ($rs =~ /^:(p|prev)$/i) { }
1037 0 0 if ($p <= @{$realm;} and $p > 0)
1043 0 0 if ($pg < @{$realm;}) { }
1052 0 0 if ($pg > 1) { }
1061 0 0 if (@_ = grep({/^\Q$rs\E$/i;} @{$valid;})) { }
1083 0 0 if (not $self->{'__SPIN'} or $self->{'__SPIN'} == 1) { }
0 0 elsif ($self->{'__SPIN'} == 2) { }
0 0 elsif ($self->{'__SPIN'} == 3) { }
0 0 elsif ($self->{'__SPIN'} == 4) { }
1110 0 0 $current && $total ? :
1111 0 0 $percent <= 100 && $percent >= 0 ? :
1114 0 0 $percent =~ /^\d\d$/ ? :
0 0 $percent =~ /^\d$/ ? :
1116 0 0 $args->{'noCR'} && !$args->{'CR'} ? :