Condition Coverage

blib/lib/Term/ANSIMenu.pm
Criterion Covered Total %
condition 10 99 10.1


and 3 conditions

line !l l&&!r l&&r condition
267 16 0 12 length $name == 1 and $name =~ /^[[:graph:] ]$/
305 1 1 0 $value > 0 and $value < $$self{'_term_width'}
309 1 1 0 $value > 0 and $value < $$self{'_term_height'}
329 0 0 1 $value =~ /^\d+$/ and $value <= scalar @{$$self{'_items'};}
364 0 0 6 defined $$item[0] and $self->_is_keyname($$item[0])
365 0 0 6 defined $$item[1] and $$item[1] =~ /^[[:graph:] ]*$/
499 0 0 0 $self->leader and not $self->item_frame
502 0 0 0 $self->item_frame and $self->spacious_items
0 0 0 $self->item_frame and $self->spacious_items and $self->item_count > 1
503 0 0 0 $self->trailer and not $self->item_frame
565 0 0 0 defined $hint and $self->_check_value('_status', $hint)
1885 0 0 0 defined $t and $t <= $self->height
1886 0 0 0 defined $b and $b <= $self->height
1897 0 0 0 defined $l and $l > 0
0 0 0 defined $l and $l > 0 and $l <= $self->height
1898 0 0 0 defined $c and $c > 0
0 0 0 defined $c and $c > 0 and $c <= $self->width
1899 0 0 0 $l =~ /^\d+$/ and $c =~ /^\d+$/
1989 0 0 0 $self->selection > 0 and $self->selection <= $last_item + 1
2024 0 0 0 $highlight and $i == $self->selection - 1
2058 0 0 0 $highlight and $i == $self->selection - 1
2105 0 0 0 $i < $last_item and $self->spacious_items
2149 0 0 0 defined $text and length $text > 0
2278 0 0 0 $self->cursor and $self->prompt
2389 0 0 0 defined $offset and $offset =~ /^[+-]?\d+/
2407 0 0 0 defined $help[$new_sel][0] and length $help[$new_sel][0] > 0
2443 0 0 0 $self->is_selection_key($key) and $self->selection > 0
2464 0 0 0 defined $self->help->[$sel][0] and length $self->help->[$sel][0] > 0
2487 0 0 0 defined $$ref[0] and length $$ref[0] > 0
2524 0 0 0 defined $status and $self->_check_value('_status', $status)
2536 0 0 0 defined $prompt and $self->_check_value('_prompt', $prompt)

or 3 conditions

line l !l&&r !l&&!r condition
583 0 1 0 $caller_is_obj || $caller
1982 0 0 0 $key_length + $label_length > $max_length or $self->item_fill