Condition Coverage

blib/lib/UI/Dialog/Gauged.pm
Criterion Covered Total %
condition 13 39 33.3


and 3 conditions

line !l l&&!r l&&r condition
51 2 0 0 $ENV{'DISPLAY'} and length $ENV{'DISPLAY'} > 0
0 2 0 not $cfg->{'order'} and ($ENV{'DISPLAY'} and length $ENV{'DISPLAY'} > 0)
74 2 0 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')
94 0 0 0 eval 'require UI::Dialog::Backend::XDialog; 1' and $self->_has_variant('Xdialog')
102 0 2 0 eval 'require UI::Dialog::Backend::CDialog; 1' and $self->_has_variant('dialog')
110 0 0 2 eval 'require UI::Dialog::Backend::Whiptail; 1' and $self->_has_variant('whiptail')
143 12 0 0 $self->{'debug'} and $self->{'debug'} >= $rate

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
35 0 2 0 ref $proto || $proto