Condition Coverage

blib/lib/Curses/UI/Listbox.pm
Criterion Covered Total %
condition 6 64 9.3


and 3 conditions

line !l l&&!r l&&r condition
150 0 1 0 defined $values and not ref $values
154 0 0 1 defined $values and ref $values eq 'ARRAY'
202 0 0 0 defined $labels and ref $labels eq 'HASH'
214 0 0 0 defined $labels and ref $labels eq 'HASH'
248 1 0 0 $$this{-'yscrpos'} > 0 and $inscreen < $this->canvasheight
373 0 0 0 $$this{-'ypos'} == $i and $$this{-'focus'}
381 0 0 0 not $$this{-'multi'} and defined $$this{-'selected'}
0 0 0 not $$this{-'multi'} and defined $$this{-'selected'} and $$this{-'selected'} == $i
0 0 0 $$this{-'multi'} and defined $$this{-'selected'}
0 0 0 $$this{-'multi'} and defined $$this{-'selected'} and $$this{-'selected'}{$i}
405 0 0 0 defined $$this{-'selected'} and $$this{-'selected'}{$i}
415 0 0 0 defined $$this{-'selected'} and $i == $$this{-'selected'}
641 0 0 0 @{$$this{-'values'};} and $newypos >= 0
0 0 0 @{$$this{-'values'};} and $newypos >= 0 and $newypos < @{$$this{-'values'};}

or 2 conditions

line l !l condition
292 0 0 shift() || 0
321 3 0 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
365 0 0 0 $$this{-'multi'} || $$this{-'radio'}
381 0 0 0 not $$this{-'multi'} and defined $$this{-'selected'} and $$this{-'selected'} == $i or $$this{-'multi'} and defined $$this{-'selected'} and $$this{-'selected'}{$i}
427 0 0 0 $$this{-'multi'} or $$this{-'radio'}
509 1 4 0 !defined($$this{-'selected'}) || $$this{-'selected'} != $id
568 0 0 0 !defined($$this{-'selected'}) || $$this{-'selected'} != $$this{-'ypos'}
600 0 0 0 !defined($$this{-'selected'}) || $$this{-'selected'} != $$this{-'ypos'}