Condition Coverage

blib/lib/Term/Choose.pm
Criterion Covered Total %
condition 0 246 0.0


and 2 conditions

line l !l condition
384 0 0 $up++ and next

and 3 conditions

line !l l&&!r l&&r condition
266 0 0 0 defined $self->{'max_cols'} and $self->{'max_cols'} == 1
269 0 0 0 $self->{'max_height'} and $self->{'max_height'} < $self->{'keep'}
272 0 0 0 length $self->{'footer'} and $self->{'page'} != 2
275 0 0 0 $self->{'page'} == 2 and not $self->{'clear_screen'}
278 0 0 0 $self->{'max_cols'} and $self->{'layout'} == 1
399 0 0 0 $self->{'wantarray'} and @{$self->{'marked'};}
412 0 0 0 exists $ENV{'TC_RESET_AUTO_UP'} and $ENV{'TC_RESET_AUTO_UP'} == 0
413 0 0 0 $key != 10 and $key != 13
426 0 0 0 $saved_pos and $key != 333
0 0 0 $saved_pos and $key != 333 and $key != 2
0 0 0 $saved_pos and $key != 333 and $key != 2 and $key != 334
0 0 0 $saved_pos and $key != 333 and $key != 2 and $key != 334 and $key != 6
443 0 0 0 $key == 6 and $self->{'search'}
444 0 0 0 $self->{'rc2idx'}[$self->{'pos'}[0] + 1] && $self->{'rc2idx'}[$self->{'pos'}[0] + 1][$self->{'pos'}[1]]
482 0 0 0 $self->{'pos'}[0] == $#{$$self{"rc2idx"};} and $self->{'pos'}[1] == $#{$self->{'rc2idx'}[$self->{'pos'}[0]];}
511 0 0 0 $self->{'pos'}[1] == 0 and $self->{'pos'}[0] == 0
600 0 0 0 $self->{'pos'}[1] == 0 and $self->{'pos'}[0] == 0
613 0 0 0 $self->{'order'} == 1 and $self->{'idx_of_last_col_in_last_row'} < $#{$$self{"rc2idx"}[0];}
614 0 0 0 $self->{'pos'}[0] == $#{$$self{"rc2idx"};} - 1 and $self->{'pos'}[1] == $#{$self->{'rc2idx'}[$self->{'pos'}[0]];}
634 0 0 0 $self->{'pos'}[0] == $#{$$self{"rc2idx"};} and $self->{'pos'}[1] == $#{$self->{'rc2idx'}[$self->{'pos'}[0]];}
679 0 0 0 defined $self->{'meta_items'} and not $self->{'marked'}[$self->{'pos'}[0]][$self->{'pos'}[1]]
788 0 0 0 $self->{'wantarray'} and defined $self->{'mark'}
791 0 0 0 defined $self->{'default'} and $self->{'default'} <= $#{$$self{"list"};}
846 0 0 0 $self->{'max_width'} and $self->{'avail_width'} > $self->{'max_width'}
865 0 0 0 $self->{'max_height'} and $self->{'avail_height'} > $self->{'max_height'}
902 0 0 0 length $self->{$opt} and defined $$self{'tabs_' . $opt}
955 0 0 0 $self->{$tmp_tabs}[4] and $self->{$tmp_tabs}[4] < $self->{'term_width'} + 1 - ($l_margin + $r_margin)
1047 0 0 0 defined $self->{$tmp_tabs} and $self->{$tmp_tabs}[4]
1081 0 0 0 defined $self->{$tmp_tabs} and $self->{$tmp_tabs}[4]
1225 0 0 0 $self->{'layout'} <= 1 and not $self->{'ll'}
0 0 0 $self->{'layout'} <= 1 and not $self->{'ll'} and not $self->{'max_cols'}
1278 0 0 0 $self->{'max_cols'} and $cols_per_row > $self->{'max_cols'}
1297 0 0 0 $r == $rows - 1 and $c > $self->{'idx_of_last_col_in_last_row'}
1325 0 0 0 $self->{'page'} == 1 and $pp_total == 1
1508 0 0 0 $row == $self->{'pos'}[0] && $col == $self->{'pos'}[1]
1515 0 0 0 $is_current_pos and $self->{'color'} == 1
1557 0 0 0 $is_current_pos and $self->{'color'} == 1

or 2 conditions

line l !l condition
287 0 0 $self->{'margin_top'} //= 0
288 0 0 $self->{'margin_right'} //= 0
289 0 0 $self->{'margin_bottom'} //= 0
290 0 0 $self->{'margin_left'} //= 0
380 0 0 $self->{'margin_top'} // 0
840 0 0 int $self->{'margin_left'} * $reduce || 1
841 0 0 int $self->{'margin_right'} * $reduce || 1
868 0 0 $self->{'info_rows'} // []
0 0 $self->{'prompt_rows'} // []
908 0 0 $self->{$orig_tabs}[0] // 0
0 0 $self->{$orig_tabs}[1] // 0
0 0 $self->{$orig_tabs}[2] // 0
0 0 $self->{$orig_tabs}[3] // 0
952 0 0 int $self->{$tmp_tabs}[2] * $reduce || 1
953 0 0 int $self->{$tmp_tabs}[3] * $reduce || 1
1100 0 0 int $self->{'margin_right'} * $reduce || 1
1101 0 0 int $self->{'margin_left'} * $reduce || 1

or 3 conditions

line l !l&&r !l&&!r condition
225 0 0 0 $key eq "plugin" or $key eq "backup_instance_defaults"
308 0 0 0 @_ < 1 or @_ > 2
352 0 0 0 $self->{'term_width'} < $min_term_width or $self->{'term_height'} < $min_term_height
371 0 0 0 $new_term_width < $min_term_width or $new_term_height < $min_term_height
374 0 0 0 $new_term_width != $self->{'term_width'} or $new_term_height != $self->{'term_height'}
443 0 0 0 $key == 340 or $key == 106
0 0 0 $key == 338 or $key == 107
0 0 0 $key == 9 or $key == 9
0 0 0 $key == 127 or $key == 8
0 0 0 $key == 127 or $key == 8 or $key == 8
0 0 0 $key == 339 or $key == 108
0 0 0 $key == 337 or $key == 104
0 0 0 $key == 333 or $key == 16
0 0 0 $key == 334 or $key == 14
0 0 0 $key == 336 or $key == 1
0 0 0 $key == 335 or $key == 5
0 0 0 $key == 113 or $key == 17
0 0 0 $key == 10 or $key == 13
584 0 0 0 $self->{'pos'}[0] + $self->{'avail_height'} > $#{$$self{"rc2idx"};} or $self->{'pos'}[1] > $#{$self->{'rc2idx'}[$self->{'pos'}[0] + $self->{'avail_height'}];}
620 0 0 0 @{$self->{'rc2idx'};} % $self->{'avail_height'} || $self->{'avail_height'}
640 0 0 0 @{$self->{'rc2idx'};} % $self->{'avail_height'} || $self->{'avail_height'}
663 0 0 0 $self->{'index'} || $self->{'ll'}
701 0 0 0 defined $self->{'no_spacebar'} or defined $self->{'meta_items'}
829 0 0 0 $self->{'margin_right'} or $self->{'col_width'} > $self->{'avail_width'}
894 0 0 0 $self->{'margin_left'} or $self->{'margin_right'}
913 0 0 0 $self->{$tmp_tabs}[2] or $self->{$tmp_tabs}[3]
983 0 0 0 $init > $width - 5 or $subseq > $width - 5
1018 0 0 0 $self->{'margin_top'} or $self->{'margin_bottom'}
1036 0 0 0 $self->{'max_width'} or $self->{'tabs_with_max_width'}
1089 0 0 0 $self->{'margin_right'} or $self->{'margin_left'}
0 0 0 $self->{'margin_right'} or $self->{'margin_left'} or $self->{'tabs_width_horizontal_margin'}
1282 0 0 0 @{$self->{'list'};} % $cols_per_row || $cols_per_row
1453 0 0 0 $self->{'footer_fmt'} or $self->{'pp_count'} > 1