Branch Coverage

blib/lib/UI/Dialog/Screen/Menu.pm
Criterion Covered Total %
branch 12 48 25.0


line true false branch
41 2 0 unless (exists $args{'dialog'})
53 0 2 defined $args{'title'} ? :
0 2 defined $args{'backtitle'} ? :
0 2 defined $args{'height'} ? :
0 2 defined $args{'width'} ? :
0 2 defined $args{'listheight'} ? :
0 2 defined $args{'order'} ? :
0 2 defined $args{'PATH'} ? :
0 2 defined $args{'beepbefore'} ? :
0 2 defined $args{'beepafter'} ? :
0 2 defined $args{'trust-input'} && $args{'trust-input'} == 1 ? :
56 2 0 unless (exists $args{'menu'})
86 0 0 if (defined $index and $index >= 0 and $index < @{$self->{'menu'};})
100 0 0 if (defined $index and $index >= 0 and $index < @{$self->{'menu'};})
103 0 0 if defined $label
104 0 0 if defined $func
126 0 0 defined $self->{'title'} ? :
0 0 defined $self->{'text'} ? :
129 0 0 if ($self->{'dialog'}->state eq 'OK') { }
132 0 0 if defined $func and ref $func eq 'CODE'
135 0 0 if (exists $self->{'cancel'})
137 0 0 if defined $func and ref $func eq 'CODE'
150 0 0 unless $self->run
167 0 0 $self->{'__loop_active'} ? :