line |
true |
false |
branch |
24
|
0 |
16 |
unless $self->{'rows'} and @{$self->{'rows'};} |
28
|
1 |
15 |
if (ref $self->{'no_collapse'} eq 'ARRAY') |
32
|
12 |
4 |
if ($self->{'no_collapse'} and $self->{'header'}) |
39
|
15 |
1 |
unless defined $self->{'pad'} |
41
|
9 |
7 |
unless defined $self->{'collapse'} |
42
|
14 |
2 |
unless defined $self->{'sanitize'} |
43
|
14 |
2 |
unless defined $self->{'mark_tail'} |
45
|
12 |
4 |
if ($self->{'header'}) { } |
46
|
11 |
1 |
unless defined $self->{'show_header'} |
58
|
16 |
1 |
unless $self->{'_columns'} |
67
|
12 |
4 |
$has_header ? : |
72
|
12 |
4 |
$has_header ? : |
74
|
11 |
126 |
if $self->{'auto_columns'} |
75
|
0 |
137 |
unless my $c = $cols->[$ci] |
80
|
131 |
2 |
unless &blessed($r) and $r->isa('Term::Table::Cell') || $r->isa('Term::Table::CellStack') || $r->isa('Term::Table::Spacer') |
86
|
137 |
0 |
if $self->{'sanitize'} |
87
|
137 |
0 |
if $self->{'mark_tail'} |
90
|
87 |
50 |
if $rs > $c->{'width'} |
91
|
125 |
12 |
if $rs |
98
|
6 |
39 |
unless $_->{'count'} > 0 |
99
|
12 |
4 |
if $self->{'collapse'} |
105
|
7 |
9 |
if ($total > $self->{'max_width'}) |
107
|
3 |
4 |
if ($fair < 1) |
108
|
1 |
2 |
if $self->{'allow_overflow'} |
115
|
13 |
0 |
if ($c->{'width'} > $fair) { } |
125
|
0 |
4 |
if ($fair < 1) |
126
|
0 |
0 |
if $self->{'allow_overflow'} |
163
|
49 |
487 |
unless ($r) |
170
|
449 |
38 |
if ($r->isa('Term::Table::Cell')) { } |
|
38 |
0 |
elsif ($r->isa('Term::Table::CellStack')) { } |
|
0 |
0 |
elsif ($r->isa('Term::Table::Spacer')) { } |
183
|
0 |
487 |
if ($is_spacer) { } |
|
249 |
238 |
elsif (defined $v) { } |
192
|
0 |
249 |
if (my $need = $vw - uni_length($v)) |
204
|
487 |
49 |
if $_ |
|
53 |
96 |
unless (grep {/\S/ if $_;} @row) |
205
|
15 |
38 |
unless $found or $is_spacer |
207
|
13 |
2 |
if $row == 0 and $self->{'show_header'} and @{$self->{'header'};} |
208
|
10 |
28 |
if $split > 1 or $is_spacer |
217
|
0 |
10 |
if ($split == 1 and @out > 1 and $out[-2] ne $border and $out[-2] ne $spacer) |
245
|
0 |
0 |
if $fh |