Condition Coverage

blib/lib/UI/Dialog.pm
Criterion Covered Total %
condition 14 48 29.1


and 3 conditions

line !l l&&!r l&&r condition
51 5 0 0 $ENV{'DISPLAY'} and length $ENV{'DISPLAY'} > 0
0 5 0 not $cfg->{'order'} and ($ENV{'DISPLAY'} and length $ENV{'DISPLAY'} > 0)
74 3 2 0 exists $cfg->{'trust-input'} && $cfg->{'trust-input'} == 1
86 0 0 0 eval 'require UI::Dialog::Backend::Zenity; 1' and $self->_has_variant('zenity')
95 0 0 0 eval 'require UI::Dialog::Backend::GDialog; 1' and $self->_has_variant('gdialog.real') || $self->_has_variant('gdialog')
104 0 0 0 eval 'require UI::Dialog::Backend::XDialog; 1' and $self->_has_variant('Xdialog')
112 0 0 0 eval 'require UI::Dialog::Backend::KDialog; 1' and $self->_has_variant('kdialog')
138 0 5 0 eval 'require UI::Dialog::Backend::CDialog; 1' and $self->_has_variant('dialog')
146 0 0 5 eval 'require UI::Dialog::Backend::Whiptail; 1' and $self->_has_variant('whiptail')
184 51 0 0 $self->{'debug'} and $self->{'debug'} >= $rate

or 2 conditions

line l !l condition
36 5 0 {@_} || {}
40 0 5 $cfg->{'debug'} || 0
66 0 5 $ENV{'UI_DIALOGS'} || 'NULL'
69 0 5 $ENV{'UI_DIALOG'} || 'NULL'
182 51 0 $_[1] || 'null error message given!'
183 51 0 $_[2] || 1

or 3 conditions

line l !l&&r !l&&!r condition
35 0 5 0 ref $proto || $proto
95 0 0 0 $self->_has_variant('gdialog.real') || $self->_has_variant('gdialog')