Condition Coverage

blib/lib/UI/Dialog/Backend.pm
Criterion Covered Total %
condition 37 201 18.4


and 3 conditions

line !l l&&!r l&&r condition
134 0 1 0 defined $argv[0] and $argv[0] =~ /^null$/i
150 0 1 0 defined $argv[0] and $argv[0] =~ /^null$/i
164 0 0 1 defined $argv[0] and $argv[0] =~ /^null$/i
252 132 0 22 exists $args->{$key} and defined $args->{$key}
132 22 0 exists $args->{$key} and defined $args->{$key} and $args->{$key}
359 0 0 11 exists $self->{'test_mode'} and defined $self->{'test_mode'}
0 11 0 exists $self->{'test_mode'} and defined $self->{'test_mode'} and $self->{'test_mode'}
443 0 0 0 defined wantarray and wantarray
493 0 0 0 $mktemp and -x $mktemp
549 0 0 0 $_[0] and $_[0] eq 'caller'
572 0 0 0 $self->state ne 'ESC' and $self->state ne 'CANCEL'
637 0 0 0 $rv and $rv >= 1
653 0 0 0 $_[0] and $_[0] eq 'caller'
661 0 0 0 $dirname and not $self->state =~ /^(CANCEL|ESC|ERROR)$/
746 0 0 9 exists $_[3] && defined $_[3]
769 0 0 0 $self->{'width'} - 5 < length $s_line and length $s_line <= $self->{'max-scale'}
862 0 0 0 @_ == 1 && $_[0] == 1
893 0 0 0 $self->{'_opts'}{'debug'} and $self->{'_opts'}{'debug'} >= $rate
913 0 0 0 $ENV{'TERM'} and $ENV{'TERM'} ne 'dumb'
926 0 0 20 $ENV{'TERM'} and $ENV{'TERM'} ne 'dumb'

or 2 conditions

line l !l condition
64 0 0 $self->{'_nautilus'} || {}
80 0 0 $self->{'_xosd'} || {}
96 0 0 $self->{'_notify_send'} || {}
140 0 0 $self->{'_state'}{'ra'} ||= []
176 0 0 $self->rv || 0
177 0 0 $rv || 'NULL'
212 0 10 $args->{'literal'} || 0
10 0 $args->{'width'} || '65'
1 9 $args->{'trust-input'} || 0
10 0 $value || ''
222 279 0 $args->{'width'} || '65'
25 254 $args->{'trust-input'} || 0
126 153 $value || ''
290 123 153 $args->{$key} || ''
296 123 153 $rpl{$key}{'value'} || ''
311 0 0 $self->trust_quote($rpl{$key}, $item->[2]) || 1
317 0 0 $self->trust_quote($rpl{$key}, $item->[2]) || 1
332 0 0 $value ||= ''
466 9 0 shift() || 65
467 0 9 shift() || ''
468 0 9 shift() || ''
478 0 0 $self->{'_opts'}{'tempfiletemplate'} || 'UI_Dialog_tempfile_XXXXX'
524 0 0 $_[1] || 5
547 0 0 (caller 1)[3] || 'main'
548 0 0 (caller 2)[3] || 'main'
591 0 0 $user_selection - 1 or 0
0 0 $user_selection - 1 or 0
0 0 $user_selection - 1 or 0
0 0 $user_selection - 1 or 0
0 0 $user_selection - 1 or 0
622 0 0 $user_selection - 1 or 0
625 0 0 $user_selection - 1 or 0
651 0 0 (caller 1)[3] || 'main'
652 0 0 (caller 2)[3] || 'main'
674 0 0 $dirname || ''
704 9 0 shift() || {}
745 9 0 $_[2] || 65
818 0 11 $args->{'clearbefore'} || $args->{'clearafter'} || $args->{'autoclear'} || 0
819 0 11 $args->{'beepbefore'} || $args->{'beepafter'} || $args->{'autobeep'} || 0
841 18 0 $text ||= ''
860 0 0 shift() || (return ())
891 0 0 $_[1] || 'null debug message given!'
892 0 0 $_[2] || 1
899 0 0 $_[1] || 'null error message given!'
923 0 20 $_[1] || 0

or 3 conditions

line l !l&&r !l&&!r condition
42 0 0 0 ref $proto || $proto
120 0 0 0 $_[2] == 0 or $_[2] =~ /^NULL$/i
178 0 0 0 $rv == 1 or $rv == 129
0 0 0 not $rv or $rv =~ /^null$/i
335 25 0 248 $rpl{$key}{'trust'} or $rpl{$key}{'literal'}
530 0 0 0 $num < 33 or $num > 127
561 0 0 0 $args->{'path'} ||= abs_path()
567 0 0 0 not $path or $path =~ m[^(\.|\./)$]
581 0 0 0 $args->{'listheight'} || $args->{'menuheight'}
593 0 0 0 not $nfn or -e $path . '/' . $nfn
600 0 0 0 $self->state eq 'ESC' or $self->state eq 'CANCEL'
668 0 0 0 -d $dirname or not -e $dirname
780 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'
927 0 0 20 $clear || $self->{'_opts'}{'autoclear'}
928 0 0 0 $self->{'_clear'} ||= `clear`