Condition Coverage

blib/lib/UI/Dialog/Backend/ASCII.pm
Criterion Covered Total %
condition 25 278 8.9


and 3 conditions

line !l l&&!r l&&r condition
95 1 2 0 exists $cfg->{'trust-input'} && $cfg->{'trust-input'} == 1
176 0 0 0 $extra and $extra ne ' '
179 0 0 0 $help and $help ne ' '
182 0 0 0 $cancel and $cancel ne ' '
347 0 0 0 $menu->[$i] and $menu->[$i] =~ /on/i
358 0 0 0 not $mark and $menu->[$i]
0 0 0 not $mark and $menu->[$i] and $menu->[$i] =~ /on/i
441 0 0 0 $_[0] and $_[0] eq 'caller'
452 0 0 0 not $RESP and $args->{'defaultno'}
480 0 0 0 $_[0] and $_[0] eq 'caller'
517 0 0 0 $_[0] and $_[0] eq 'caller'
628 0 0 0 $_[0] and $_[0] eq 'caller'
650 0 0 0 $_[0] and $_[0] eq 'caller'
671 0 0 0 $_[0] and $_[0] eq 'caller'
679 0 0 0 $ENV{'PAGER'} and -x $ENV{'PAGER'}
712 0 0 0 $_[0] and $_[0] eq 'caller'
749 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
779 0 0 0 $p <= @{$realm;} and $p > 0
826 0 0 0 $_[0] and $_[0] eq 'caller'
877 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
908 0 0 0 $p <= @{$realm;} and $p > 0
959 0 0 0 $_[0] and $_[0] eq 'caller'
1007 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
1037 0 0 0 $p <= @{$realm;} and $p > 0
1110 0 0 0 $current && $total
1111 0 0 0 $percent <= 100 && $percent >= 0
1116 0 0 0 $args->{'noCR'} && !$args->{'CR'}

or 2 conditions

line l !l condition
67 0 3 $cfg->{'callbacks'} || undef()
68 0 3 $cfg->{'timeout'} || 0
69 0 3 $cfg->{'wait'} || 0
70 0 3 $cfg->{'debug'} || undef()
71 0 3 $cfg->{'title'} || undef()
72 0 3 $cfg->{'backtitle'} || undef()
73 0 3 $cfg->{'usestderr'} || 0
74 0 3 $cfg->{'extra-button'} || 0
75 0 3 $cfg->{'extra-label'} || undef()
76 0 3 $cfg->{'help-button'} || 0
77 0 3 $cfg->{'help-label'} || undef()
78 0 3 $cfg->{'nocancel'} || 0
79 0 3 $cfg->{'maxinput'} || 0
80 0 3 $cfg->{'defaultno'} || 0
81 0 3 $cfg->{'autoclear'} || 0
82 0 3 $cfg->{'clearbefore'} || 0
83 0 3 $cfg->{'clearafter'} || 0
84 0 3 $cfg->{'beepbin'} || $self->_find_bin('beep') || '/usr/bin/beep'
85 0 3 $cfg->{'beepbefore'} || 0
86 0 3 $cfg->{'beepafter'} || 0
109 0 0 shift() || (return ())
135 0 0 $args->{'clearbefore'} || $args->{'clearafter'} || $args->{'autoclear'} || 0
136 0 0 $args->{'beepbefore'} || $args->{'beepafter'} || $args->{'autobeep'} || 0
194 0 0 $cfg->{'text'} || ''
197 0 0 $self->_organize_text($cfg->{'text'}) || ''
200 0 0 $cfg->{'backtitle'} || ' '
201 0 0 $cfg->{'title'} || ' '
260 0 0 $cfg->{'text'} || ''
263 0 0 $self->_organize_text($cfg->{'text'}) || ''
266 0 0 $cfg->{'backtitle'} || ' '
267 0 0 $cfg->{'title'} || ' '
268 0 0 $cfg->{'menu'} || []
331 0 0 $cfg->{'text'} || ''
334 0 0 $self->_organize_text($cfg->{'text'}) || ''
338 0 0 $cfg->{'backtitle'} || ' '
339 0 0 $cfg->{'title'} || ' '
439 0 0 (caller 1)[3] || 'main'
440 0 0 (caller 2)[3] || 'main'
478 0 0 (caller 1)[3] || 'main'
479 0 0 (caller 2)[3] || 'main'
515 0 0 (caller 1)[3] || 'main'
516 0 0 (caller 2)[3] || 'main'
626 0 0 (caller 1)[3] || 'main'
627 0 0 (caller 2)[3] || 'main'
648 0 0 (caller 1)[3] || 'main'
649 0 0 (caller 2)[3] || 'main'
669 0 0 (caller 1)[3] || 'main'
670 0 0 (caller 2)[3] || 'main'
699 0 0 $rv || 'null'
710 0 0 (caller 1)[3] || 'main'
711 0 0 (caller 2)[3] || 'main'
717 0 0 $args->{'menu'} ||= []
745 0 0 $pg - 1 or 0
824 0 0 (caller 1)[3] || 'main'
825 0 0 (caller 2)[3] || 'main'
874 0 0 $pg - 1 or 0
957 0 0 (caller 1)[3] || 'main'
958 0 0 (caller 2)[3] || 'main'
1004 0 0 $pg - 1 or 0
1105 0 0 $args->{'length'} || $args->{'width'} || 74
1106 0 0 $args->{'bar'} || '-'
1107 0 0 $args->{'current'} || 0
1108 0 0 $args->{'total'} || 0
1110 0 0 $args->{'percent'} || '0'
1113 0 0 $perc || 0
0 0 $args->{'mark'} || '|'
1117 0 0 $percent || 1

or 3 conditions

line l !l&&r !l&&!r condition
40 0 3 0 ref $proto || $proto
87 3 0 0 $cfg->{'pager'} || $self->_find_bin('pager') || $self->_find_bin('less') || $self->_find_bin('more')
91 0 3 0 $cfg->{'stty'} || $self->_find_bin('stty')
154 0 0 0 $self->{'_opts'}{'extra-button'} or $self->{'_opts'}{'extra-label'}
160 0 0 0 $self->{'_opts'}{'help-button'} or $self->{'_opts'}{'help-label'}
452 0 0 0 $RESP || $args->{'defaultno'}
716 0 0 0 $args->{'menu'} ||= ref $args->{'list'} ? $args->{'list'} : [$args->{'list'}]
749 0 0 0 $args->{'extra-button'} || $args->{'extra-label'}
830 0 0 0 $args->{'menu'} || $args->{'list'}
877 0 0 0 $args->{'extra-button'} || $args->{'extra-label'}
0 0 0 $args->{'help-button'} || $args->{'help-label'}
963 0 0 0 $args->{'menu'} || $args->{'list'}
1007 0 0 0 $args->{'extra-button'} || $args->{'extra-label'}
0 0 0 $args->{'help-button'} || $args->{'help-label'}
1083 0 0 0 not $self->{'__SPIN'} or $self->{'__SPIN'} == 1