Condition Coverage

blib/lib/Term/Table.pm
Criterion Covered Total %
condition 46 64 71.8


and 3 conditions

line !l l&&!r l&&r condition
24 0 0 16 $self->{'rows'} and @{$self->{'rows'};}
32 0 4 12 $self->{'no_collapse'} and $self->{'header'}
66 4 0 12 $self->{'show_header'} && @{$self->{'header'};}
80 131 6 0 &blessed($r) and $r->isa('Term::Table::Cell') || $r->isa('Term::Table::CellStack') || $r->isa('Term::Table::Spacer')
207 23 2 13 $row == 0 and $self->{'show_header'}
2 0 13 $row == 0 and $self->{'show_header'} and @{$self->{'header'};}
217 86 0 10 $split == 1 and @out > 1
86 6 4 $split == 1 and @out > 1 and $out[-2] ne $border
6 4 0 $split == 1 and @out > 1 and $out[-2] ne $border and $out[-2] ne $spacer
226 0 15 6 @out and $out[-1] eq $spacer

or 2 conditions

line l !l condition
27 1 15 $self->{'no_collapse'} ||= {}
74 4 7 $cols->[$ci] ||= {%new_col}
77 85 52 $c->{'rows'} ||= []
188 0 249 $r->border_color || ''
189 0 249 $r->value_color || ''
190 0 249 $r->reset_color || ''
197 16 233 $r->border_left || ''
16 233 $r->border_right || ''

or 3 conditions

line l !l&&r !l&&!r condition
26 15 1 0 $self->{'max_width'} ||= term_size()
35 0 2 43 $self->{'no_collapse'}{$idx} ||= $self->{'no_collapse'}{$header->[$idx]}
76 63 36 38 $c->{'idx'} ||= $ci
80 6 0 0 $r->isa('Term::Table::Cell') || $r->isa('Term::Table::CellStack') || $r->isa('Term::Table::Spacer')
205 38 0 15 $found or $is_spacer
208 10 0 28 $split > 1 or $is_spacer