Condition Coverage

blib/lib/UI/Dialog/Backend/ASCII.pm
Criterion Covered Total %
condition 24 273 8.7


and 3 conditions

line !l l&&!r l&&r condition
94 1 0 0 exists $cfg->{'trust-input'} && $cfg->{'trust-input'} == 1
175 0 0 0 $extra and $extra ne ' '
178 0 0 0 $help and $help ne ' '
181 0 0 0 $cancel and $cancel ne ' '
346 0 0 0 $menu->[$i] and $menu->[$i] =~ /on/i
357 0 0 0 not $mark and $menu->[$i]
0 0 0 not $mark and $menu->[$i] and $menu->[$i] =~ /on/i
440 0 0 0 $_[0] and $_[0] eq 'caller'
451 0 0 0 not $RESP and $args->{'defaultno'}
479 0 0 0 $_[0] and $_[0] eq 'caller'
516 0 0 0 $_[0] and $_[0] eq 'caller'
627 0 0 0 $_[0] and $_[0] eq 'caller'
649 0 0 0 $_[0] and $_[0] eq 'caller'
670 0 0 0 $_[0] and $_[0] eq 'caller'
678 0 0 0 $ENV{'PAGER'} and -x $ENV{'PAGER'}
711 0 0 0 $_[0] and $_[0] eq 'caller'
747 0 0 0 $args->{'extra-button'} || $args->{'extra-label'} and $rs =~ /^:(e|extra)$/i
0 0 0 $args->{'help-button'} and $rs =~ /^:(h|help)$/i
0 0 0 not $args->{'nocancel'} and $rs =~ /^:(c|cancel)$/i
777 0 0 0 $p <= @{$realm;} and $p > 0
824 0 0 0 $_[0] and $_[0] eq 'caller'
875 0 0 0 $args->{'extra-button'} || $args->{'extra-label'} and $rs =~ /^:(e|extra)$/i
0 0 0 $args->{'help-button'} || $args->{'help-label'} and $rs =~ /^:(h|help)$/i
0 0 0 not $args->{'nocancel'} and $rs =~ /^:(c|cancel)$/i
906 0 0 0 $p <= @{$realm;} and $p > 0
957 0 0 0 $_[0] and $_[0] eq 'caller'
1005 0 0 0 $args->{'extra-button'} || $args->{'extra-label'} and $rs =~ /^:(e|extra)$/i
0 0 0 $args->{'help-button'} || $args->{'help-label'} and $rs =~ /^:(h|help)$/i
0 0 0 not $args->{'nocancel'} and $rs =~ /^:(c|cancel)$/i
1035 0 0 0 $p <= @{$realm;} and $p > 0
1108 0 0 0 $current && $total
1109 0 0 0 $percent <= 100 && $percent >= 0
1114 0 0 0 $args->{'noCR'} && !$args->{'CR'}

or 2 conditions

line l !l condition
66 0 1 $cfg->{'callbacks'} || undef()
67 0 1 $cfg->{'timeout'} || 0
68 0 1 $cfg->{'wait'} || 0
69 0 1 $cfg->{'debug'} || undef()
70 0 1 $cfg->{'title'} || undef()
71 0 1 $cfg->{'backtitle'} || undef()
72 0 1 $cfg->{'usestderr'} || 0
73 0 1 $cfg->{'extra-button'} || 0
74 0 1 $cfg->{'extra-label'} || undef()
75 0 1 $cfg->{'help-button'} || 0
76 0 1 $cfg->{'help-label'} || undef()
77 0 1 $cfg->{'nocancel'} || 0
78 0 1 $cfg->{'maxinput'} || 0
79 0 1 $cfg->{'defaultno'} || 0
80 0 1 $cfg->{'autoclear'} || 0
81 0 1 $cfg->{'clearbefore'} || 0
82 0 1 $cfg->{'clearafter'} || 0
83 0 1 $cfg->{'beepbin'} || $self->_find_bin('beep') || '/usr/bin/beep'
84 0 1 $cfg->{'beepbefore'} || 0
85 0 1 $cfg->{'beepafter'} || 0
108 0 0 shift() || (return ())
134 0 0 $args->{'clearbefore'} || $args->{'clearafter'} || $args->{'autoclear'} || 0
135 0 0 $args->{'beepbefore'} || $args->{'beepafter'} || $args->{'autobeep'} || 0
193 0 0 $cfg->{'text'} || ''
196 0 0 $self->_organize_text($cfg->{'text'}) || ''
199 0 0 $cfg->{'backtitle'} || ' '
200 0 0 $cfg->{'title'} || ' '
259 0 0 $cfg->{'text'} || ''
262 0 0 $self->_organize_text($cfg->{'text'}) || ''
265 0 0 $cfg->{'backtitle'} || ' '
266 0 0 $cfg->{'title'} || ' '
267 0 0 $cfg->{'menu'} || []
330 0 0 $cfg->{'text'} || ''
333 0 0 $self->_organize_text($cfg->{'text'}) || ''
337 0 0 $cfg->{'backtitle'} || ' '
338 0 0 $cfg->{'title'} || ' '
438 0 0 (caller 1)[3] || 'main'
439 0 0 (caller 2)[3] || 'main'
477 0 0 (caller 1)[3] || 'main'
478 0 0 (caller 2)[3] || 'main'
514 0 0 (caller 1)[3] || 'main'
515 0 0 (caller 2)[3] || 'main'
625 0 0 (caller 1)[3] || 'main'
626 0 0 (caller 2)[3] || 'main'
647 0 0 (caller 1)[3] || 'main'
648 0 0 (caller 2)[3] || 'main'
668 0 0 (caller 1)[3] || 'main'
669 0 0 (caller 2)[3] || 'main'
698 0 0 $rv || 'null'
709 0 0 (caller 1)[3] || 'main'
710 0 0 (caller 2)[3] || 'main'
743 0 0 $pg - 1 or 0
822 0 0 (caller 1)[3] || 'main'
823 0 0 (caller 2)[3] || 'main'
872 0 0 $pg - 1 or 0
955 0 0 (caller 1)[3] || 'main'
956 0 0 (caller 2)[3] || 'main'
1002 0 0 $pg - 1 or 0
1103 0 0 $args->{'length'} || $args->{'width'} || 74
1104 0 0 $args->{'bar'} || '-'
1105 0 0 $args->{'current'} || 0
1106 0 0 $args->{'total'} || 0
1108 0 0 $args->{'percent'} || '0'
1111 0 0 $perc || 0
0 0 $args->{'mark'} || '|'
1115 0 0 $percent || 1

or 3 conditions

line l !l&&r !l&&!r condition
39 0 1 0 ref $proto || $proto
86 1 0 0 $cfg->{'pager'} || $self->_find_bin('pager') || $self->_find_bin('less') || $self->_find_bin('more')
90 0 1 0 $cfg->{'stty'} || $self->_find_bin('stty')
153 0 0 0 $self->{'_opts'}{'extra-button'} or $self->{'_opts'}{'extra-label'}
159 0 0 0 $self->{'_opts'}{'help-button'} or $self->{'_opts'}{'help-label'}
451 0 0 0 $RESP || $args->{'defaultno'}
747 0 0 0 $args->{'extra-button'} || $args->{'extra-label'}
828 0 0 0 $args->{'menu'} || $args->{'list'}
875 0 0 0 $args->{'extra-button'} || $args->{'extra-label'}
0 0 0 $args->{'help-button'} || $args->{'help-label'}
961 0 0 0 $args->{'menu'} || $args->{'list'}
1005 0 0 0 $args->{'extra-button'} || $args->{'extra-label'}
0 0 0 $args->{'help-button'} || $args->{'help-label'}
1081 0 0 0 not $self->{'__SPIN'} or $self->{'__SPIN'} == 1