Condition Coverage

blib/lib/UI/Dialog/Backend/CDialog.pm
Criterion Covered Total %
condition 19 283 6.7


and 3 conditions

line !l l&&!r l&&r condition
172 0 0 0 $args->{'DIALOGRC'} && -r $args->{'DIALOGRC'}
224 0 0 0 exists $_[3] && defined $_[3]
250 0 0 0 $self->{'width'} - 5 < length $s_line and length $s_line <= $self->{'max-scale'}
320 0 0 0 $self->is_cdialog and $self->{'_opts'}{'colours'}
353 0 0 0 $self->{'_variant'} and $self->{'_variant'} eq 'cdialog'
363 0 0 0 $_[0] and $_[0] eq 'caller'
377 0 0 0 $rv and $rv >= 1
397 0 0 0 $_[0] and $_[0] eq 'caller'
438 0 0 0 $_[0] and $_[0] eq 'caller'
485 0 0 0 $_[0] and $_[0] eq 'caller'
511 0 0 0 $_[0] and $_[0] eq 'caller'
539 0 0 0 $_[0] and $_[0] eq 'caller'
585 0 0 0 $_[0] and $_[0] eq 'caller'
612 0 0 0 $_[0] and $_[0] eq 'caller'
633 0 0 0 defined wantarray and wantarray
644 0 0 0 $_[0] and $_[0] eq 'caller'
666 0 0 0 defined wantarray and wantarray
677 0 0 0 $_[0] and $_[0] eq 'caller'
703 0 0 0 $_[0] and $_[0] eq 'caller'
728 0 0 0 $_[0] and $_[0] eq 'caller'
767 0 0 0 defined wantarray and wantarray
777 0 0 0 $_[0] and $_[0] eq 'caller'
809 0 0 0 $rv && $rv >= 1

or 2 conditions

line l !l condition
69 0 1 $cfg->{'literal'} || 0
70 0 1 $cfg->{'callbacks'} || undef()
71 0 1 $cfg->{'timeout'} || 0
72 0 1 $cfg->{'wait'} || 0
73 0 1 $cfg->{'debug'} || undef()
74 0 1 $cfg->{'title'} || undef()
75 0 1 $cfg->{'backtitle'} || undef()
76 0 1 $cfg->{'width'} || 65
77 0 1 $cfg->{'height'} || 10
78 0 1 $cfg->{'percentage'} || 1
82 0 1 $cfg->{'autoclear'} || 0
83 0 1 $cfg->{'clearbefore'} || 0
84 0 1 $cfg->{'clearafter'} || 0
85 0 1 $cfg->{'beepbin'} || $self->_find_bin('beep') || '/usr/bin/beep'
86 0 1 $cfg->{'beepbefore'} || 0
87 0 1 $cfg->{'beepafter'} || 0
91 0 0 $cfg->{'DIALOGRC'} || undef()
94 0 0 $cfg->{'cancel-label'} || undef()
95 0 0 $cfg->{'defaultno'} || 0
96 0 0 $cfg->{'default-item'} || undef()
97 0 0 $cfg->{'exit-label'} || undef()
98 0 0 $cfg->{'extra-button'} || 0
99 0 0 $cfg->{'extra-label'} || undef()
100 0 0 $cfg->{'help-button'} || 0
101 0 0 $cfg->{'help-label'} || undef()
102 0 0 $cfg->{'max-input'} || 0
103 0 0 $cfg->{'no-cancel'} || $cfg->{'nocancel'} || 0
104 0 0 $cfg->{'no-collapse'} || 0
105 0 0 $cfg->{'no-shadow'} || 0
106 0 0 $cfg->{'ok-label'} || undef()
107 0 0 $cfg->{'shadow'} || 0
108 0 0 $cfg->{'tab-correct'} || 0
109 0 0 $cfg->{'tab-len'} || 0
110 0 0 $cfg->{'listheight'} || $cfg->{'menuheight'} || 5
111 0 0 $cfg->{'formheight'} || $cfg->{'listheight'} || 5
112 0 0 $cfg->{'yes-label'} || undef()
113 0 0 $cfg->{'no-label'} || undef()
115 0 0 $cfg->{'trust-input'} || 0
222 0 0 $_[1] || (return ())
223 0 0 $_[2] || 65
319 0 0 shift() || (return ())
361 0 0 (caller 1)[3] || 'main'
362 0 0 (caller 2)[3] || 'main'
395 0 0 (caller 1)[3] || 'main'
396 0 0 (caller 2)[3] || 'main'
429 0 0 (caller 1)[3] || 'main'
436 0 0 (caller 1)[3] || 'main'
437 0 0 (caller 2)[3] || 'main'
443 0 0 $args->{'msgbox'} ||= 'msgbox'
476 0 0 (caller 1)[3] || 'main'
483 0 0 (caller 1)[3] || 'main'
484 0 0 (caller 2)[3] || 'main'
497 0 0 $args->{'path'} || '.'
509 0 0 (caller 1)[3] || 'main'
510 0 0 (caller 2)[3] || 'main'
537 0 0 (caller 1)[3] || 'main'
538 0 0 (caller 2)[3] || 'main'
549 0 0 $args->{'radiolist'} ||= 0
573 0 0 (caller 1)[3] || 'main'
583 0 0 (caller 1)[3] || 'main'
584 0 0 (caller 2)[3] || 'main'
597 0 0 $args->{'path'} || '.'
610 0 0 (caller 1)[3] || 'main'
611 0 0 (caller 2)[3] || 'main'
616 0 0 $args->{'day'} ||= '1'
617 0 0 $args->{'month'} ||= '1'
618 0 0 $args->{'year'} ||= '1970'
642 0 0 (caller 1)[3] || 'main'
643 0 0 (caller 2)[3] || 'main'
675 0 0 (caller 1)[3] || 'main'
676 0 0 (caller 2)[3] || 'main'
688 0 0 $args->{'path'} || '.'
701 0 0 (caller 1)[3] || 'main'
702 0 0 (caller 2)[3] || 'main'
714 0 0 $args->{'path'} || '.'
726 0 0 (caller 1)[3] || 'main'
727 0 0 (caller 2)[3] || 'main'
755 0 0 $item->[0] || ' '
0 0 $info->[0] || ' '
775 0 0 (caller 1)[3] || 'main'
776 0 0 (caller 2)[3] || 'main'
782 0 0 $self->{'_GAUGE'} ||= {}
798 0 0 $args->{'percentage'} || '0'
801 0 0 $args->{'percentage'} || '0'
806 0 0 $rv || 'null'
813 0 0 $_[1] || 1
825 0 0 $_[1] || 1
837 0 0 $_[1] || $self->{'_GAUGE'}{'PERCENT'} || 1
850 0 0 $_[1] || (return 0)

or 3 conditions

line l !l&&r !l&&!r condition
41 0 1 0 ref $proto || $proto
79 0 0 1 $cfg->{'colours'} || $cfg->{'colors'}
80 0 0 1 $self->{'_opts'}{'bin'} ||= $self->_find_bin('dialog')
81 0 0 0 $self->{'_opts'}{'bin'} ||= $self->_find_bin('dialog.exe')
172 0 0 0 $ENV{'DIALOGRC'} ||= $args->{'DIALOGRC'} && -r $args->{'DIALOGRC'} ? $args->{'DIALOGRC'} : ''
261 0 0 0 uc $align eq 'CENTER' or uc $align eq 'C'
0 0 0 uc $align eq 'LEFT' or uc $align eq 'L'
0 0 0 uc $align eq 'RIGHT' or uc $align eq 'R'
419 0 0 0 $args->{'init'} || $args->{'entry'}
649 0 0 0 $args->{'hour'} ||= $hour
650 0 0 0 $args->{'minute'} ||= $min
651 0 0 0 $args->{'second'} ||= $sec