Condition Coverage

blib/lib/UI/Dialog.pm
Criterion Covered Total %
condition 13 48 27.0


and 3 conditions

line !l l&&!r l&&r condition
50 1 0 0 $ENV{'DISPLAY'} and length $ENV{'DISPLAY'} > 0
0 1 0 not $cfg->{'order'} and ($ENV{'DISPLAY'} and length $ENV{'DISPLAY'} > 0)
73 1 0 0 exists $cfg->{'trust-input'} && $cfg->{'trust-input'} == 1
85 0 0 0 eval 'require UI::Dialog::Backend::Zenity; 1' and $self->_has_variant('zenity')
94 0 0 0 eval 'require UI::Dialog::Backend::GDialog; 1' and $self->_has_variant('gdialog.real') || $self->_has_variant('gdialog')
103 0 0 0 eval 'require UI::Dialog::Backend::XDialog; 1' and $self->_has_variant('Xdialog')
111 0 0 0 eval 'require UI::Dialog::Backend::KDialog; 1' and $self->_has_variant('kdialog')
137 0 1 0 eval 'require UI::Dialog::Backend::CDialog; 1' and $self->_has_variant('dialog')
145 0 0 1 eval 'require UI::Dialog::Backend::Whiptail; 1' and $self->_has_variant('whiptail')
183 6 0 0 $self->{'debug'} and $self->{'debug'} >= $rate

or 2 conditions

line l !l condition
35 1 0 {@_} || {}
39 0 1 $cfg->{'debug'} || 0
65 0 1 $ENV{'UI_DIALOGS'} || 'NULL'
68 0 1 $ENV{'UI_DIALOG'} || 'NULL'
181 6 0 $_[1] || 'null error message given!'
182 6 0 $_[2] || 1

or 3 conditions

line l !l&&r !l&&!r condition
34 0 1 0 ref $proto || $proto
94 0 0 0 $self->_has_variant('gdialog.real') || $self->_has_variant('gdialog')