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
194 207 1 2 $self->{'end_of_table'} and not @{$self->{':row_lines'};}
196 68 4 136 @{$self->{':row_lines'};} and $self->{':line_on_page'}
269 43 84 37 $self->{'broad_row'} == 2 and $line_too_long
316 7 10 59 not @{$self->{':row_lines'};} and @{$self->_get_next_row;}
324 52 3 21 ref $self->{'rows'} eq 'ARRAY' && $self->{'current_row'} == 1 || !$self->{':line_on_page'} and not $self->{'end_of_table'}
326 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'}
339 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
477 1 1 1 $_ && _is_int($_)
1 1 9 $width && _is_int($width)
495 1 5 40 !ref($value) && $value =~ /^\d+$/u
536 34 22 10 defined $self->{$option} && !ref($self->{$option})
557 28 2 2 $self->{'collapse'}[$column_no] and not $column_width
567 28 3 1 $self->{'broad_row'} == 0 and $table_width >= $self->{'table_width'}
619 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
254 20 9 $self //= {}
407 8 5 $self->{'page_height'} ||= 18446744073709551615
408 6 7 $self->{'table_width'} ||= 18446744073709551615
588 11 1 $params{'rows'} // []

or 3 conditions

line l !l&&r !l&&!r condition
324 11 13 52 ref $self->{'rows'} eq 'ARRAY' && $self->{'current_row'} == 1 || !$self->{':line_on_page'}
326 15 54 7 $self->{':end_of_chunk'} || $self->{'separate_rows'} && $self->{':line_on_page'} + @{$self->{':row_lines'};} < $self->{'page_height'} - 1
339 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
359 8 2 2 $self->{'broad_row'} != 1 or $self->{':split_offset'} + $self->{'table_width'} >= $self->{':total_width'}
452 3 1 1 $flag == 0 || $flag == 1 || $flag == 2
459 3 1 2 $flag == 0 || $flag == 2
507 3 26 2 !defined($value) || _is_int($value)
538 11 11 44 $option eq 'header' or $option eq 'rows'
539 6 76 30 $self->{$option}[$_] //= $default