Condition Coverage

blib/lib/Curses/UI/Widget.pm
Criterion Covered Total %
condition 29 116 25.0


and 3 conditions

line !l l&&!r l&&r condition
112 12 7 0 defined $args{-'width'} and $args{-'width'} == -1
114 11 8 0 defined $args{-'height'} and $args{-'height'} == -1
117 0 0 19 defined $args{-'parent'} and ref $args{-'parent'}
124 18 1 0 $args{-'sbborder'} and $args{-'border'}
165 1 0 0 $$this{-'focus'} and not $focusable
278 0 14 0 !$$this{-'border'} && ($$this{-'hscrollbar'} ? 1 : 0)
284 0 14 0 !$$this{-'border'} && ($$this{-'vscrollbar'} ? 1 : 0)
291 0 14 0 !$$this{-'border'} && ($$this{-'hscrollbar'} eq 'top' ? 1 : 0)
297 0 14 0 !$$this{-'border'} && ($$this{-'vscrollbar'} eq 'left' ? 1 : 0)
364 0 0 0 not $args{-'border'} || $args{-'sbborder'} and $args{-'vscrollbar'}
387 0 1 0 not $args{-'border'} and $args{-'hscrollbar'}
480 0 0 0 defined $key and $key eq KEY_BTAB()
542 0 0 0 defined $scr and $pair
602 0 0 0 $$this{-'titlefullwidth'} and $$this{-'titlereverse'}
636 0 0 0 $$this{-'vscrollbar'} and defined $$this{-'vscrolllen'}
650 0 0 0 not $actlen and $$this{-'vscrolllen'}
651 0 0 0 $$this{-'vscrolllen'} && $$this{-'vscrollpos'}
671 0 0 0 $$this{-'vscrollpos'} and $actpos <= 0
721 0 0 0 $$this{-'hscrollbar'} and defined $$this{-'hscrolllen'}
734 0 0 0 not $actlen and $$this{-'hscrolllen'}
735 0 0 0 $$this{-'hscrolllen'} && $$this{-'hscrollpos'}
755 0 0 0 $$this{-'hscrollpos'} and $actpos <= 0
816 0 0 2 $$this{-'intellidraw'} and not $this->hidden
0 0 2 $$this{-'intellidraw'} and not $this->hidden and $this->in_topwindow
867 0 3 3 defined $path[-1] and not $path[-1]->isa('Curses::UI::Window')
873 0 0 3 @path && $win eq $path[-1]
1079 0 0 0 not $$this{-'focus'} and $this->focusable

or 2 conditions

line l !l condition
358 0 0 shift() || 0
382 1 0 shift() || 0
526 17 0 shift() || 0
961 0 0 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
232 0 0 14 $width > $avail_w or $height > $avail_h
0 0 14 $width > $avail_w or $height > $avail_h or $width == 0
0 0 14 $width > $avail_w or $height > $avail_h or $width == 0 or $height == 0
256 0 0 14 $$this{-'border'} or $$this{-'sbborder'}
0 0 14 $$this{-'border'} or $$this{-'sbborder'} or $$this{-'vscrollbar'}
0 0 14 $$this{-'border'} or $$this{-'sbborder'} or $$this{-'vscrollbar'} or $$this{-'hscrollbar'}
305 0 0 14 $$this{-'sw'} <= 0 or $$this{-'sh'} <= 0
364 0 0 0 $args{-'border'} || $args{-'sbborder'}
843 0 4 4 not defined $object or $object->isa('Curses::UI::Window')