Condition Coverage

blib/lib/Term/Table2.pm
Criterion Covered Total %
condition 86 86 100.0


and 3 conditions

line !l l&&!r l&&r condition
197 207 1 2 $self->{'end_of_table'} and not @{$self->{':row_lines'};}
199 68 4 136 @{$self->{':row_lines'};} and $self->{':line_on_page'}
272 43 84 37 $self->{'broad_row'} == 2 and $line_too_long
319 7 10 59 not @{$self->{':row_lines'};} and @{$self->_get_next_row;}
327 52 3 21 ref $self->{'rows'} eq 'ARRAY' && $self->{'current_row'} == 1 || !$self->{':line_on_page'} and not $self->{'end_of_table'}
329 55 6 15 $self->{':end_of_chunk'} || $self->{'separate_rows'} && $self->{':line_on_page'} + @{$self->{':row_lines'};} < $self->{'page_height'} - 1 and not $self->{':separating_added'}
342 4 58 9 ref $self->{'rows'} eq 'ARRAY' and not $self->_get_next_row_from_array
58 2 2 ref $self->{'rows'} eq 'CODE' and not $self->_get_next_row_from_callback
480 1 1 1 $_ && _is_int($_)
1 1 9 $width && _is_int($width)
498 1 5 40 !ref($value) && $value =~ /^\d+$/u
539 34 22 10 defined $self->{$option} && !ref($self->{$option})
560 28 2 2 $self->{'collapse'}[$column_no] and not $column_width
570 28 3 1 $self->{'broad_row'} == 0 and $table_width >= $self->{'table_width'}
622 2 1 10 exists $params{'header'} and exists $params{'rows'}
1 9 1 exists $params{'header'} and exists $params{'rows'} and @{$params{'header'};} < $self->{':number_of_columns'}

or 2 conditions

line l !l condition
257 20 9 $self //= {}
410 8 5 $self->{'page_height'} ||= 18446744073709551615
411 6 7 $self->{'table_width'} ||= 18446744073709551615
591 11 1 $params{'rows'} // []

or 3 conditions

line l !l&&r !l&&!r condition
327 11 13 52 ref $self->{'rows'} eq 'ARRAY' && $self->{'current_row'} == 1 || !$self->{':line_on_page'}
329 15 54 7 $self->{':end_of_chunk'} || $self->{'separate_rows'} && $self->{':line_on_page'} + @{$self->{':row_lines'};} < $self->{'page_height'} - 1
342 1 9 62 $self->{'end_of_table'} or ref $self->{'rows'} eq 'ARRAY' and not $self->_get_next_row_from_array
9 2 60 $self->{'end_of_table'} or ref $self->{'rows'} eq 'ARRAY' and not $self->_get_next_row_from_array or ref $self->{'rows'} eq 'CODE' and not $self->_get_next_row_from_callback
362 8 2 2 $self->{'broad_row'} != 1 or $self->{':split_offset'} + $self->{'table_width'} >= $self->{':total_width'}
455 3 1 1 $flag == 0 || $flag == 1 || $flag == 2
462 3 1 2 $flag == 0 || $flag == 2
510 3 26 2 !defined($value) || _is_int($value)
541 11 11 44 $option eq 'header' or $option eq 'rows'
542 6 76 30 $self->{$option}[$_] //= $default