Condition Coverage

blib/lib/Text/ASCIITable.pm
Criterion Covered Total %
condition 60 124 48.3


and 3 conditions

line !l l&&!r l&&r condition
120 2 40 0 defined $_->[$num] && $_->[$num]
169 42 0 0 scalar @_ > scalar @{$self->{'tbl_cols'};} and ref $_[0] ne 'ARRAY'
172 0 41 1 scalar @_ > 0 and ref $_[0] eq 'ARRAY'
200 17 0 140 defined @{$_;}[$num] && $self->count(@{$_;}[$num])
243 1 0 0 defined $row and ref $row eq 'ARRAY'
277 0 0 5 defined $col and defined $direction
0 0 0 defined $col and ref $col eq 'HASH'
278 0 0 0 defined $col and ref $col eq 'HASH'
300 0 0 0 defined $col and defined $direction
319 0 0 1 defined $col and defined $width
351 90 2 0 defined $self->{'tbl_width_strict'}{$colname} and $self->{'tbl_width_strict'}{$colname} == 1
92 0 0 defined $self->{'tbl_width_strict'}{$colname} and $self->{'tbl_width_strict'}{$colname} == 1 and int $self->{'tbl_width'}{$colname} > 0
579 5 0 0 $tablewidth - 4 < $self->count($text) and $opt eq 'title'
605 57 161 29 $isheader != 1 and defined $self->{'tbl_align'}{@{$$self{'tbl_cols'};}[$i]}
860 67 0 0 $self->{'options'}{'drawRowLine'} and $self->{'tbl_rowline'}{$i}
0 0 0 $self->{'options'}{'drawRowLine'} and $self->{'tbl_rowline'}{$i} and $i != scalar @{$self->{'tbl_rows'};}
66 1 0 defined $self->{'tbl_lines'}{$i} and $self->{'tbl_lines'}{$i}
0 0 1 defined $self->{'tbl_lines'}{$i} and $self->{'tbl_lines'}{$i} and $i != scalar @{$self->{'tbl_rows'};}
0 0 1 defined $self->{'tbl_lines'}{$i} and $self->{'tbl_lines'}{$i} and $i != scalar @{$self->{'tbl_rows'};} and $i != scalar @{$self->{'tbl_rows'};}
876 993 0 0 defined $self->{'options'}{'cb_count'} and ref $self->{'options'}{'cb_count'} eq 'CODE'
993 0 0 defined $self->{'options'}{'cb_count'} and ref $self->{'options'}{'cb_count'} ne 'CODE'
956 9 2 6 $left != int $left and $left > 0.4

or 2 conditions

line l !l condition
69 8 6 $_[1] || {}
90 1 13 $self->{'options'}{'alignHeadRow'} || 'auto'
91 0 14 $self->{'options'}{'undef_as'} || ''
92 1 13 $self->{'options'}{'chaining'} || 0
188 4 117 $self->{'tbl_width'}{$colname} || 0
536 1 4 $self->{'options'}{$name} || undef
589 5 0 $align || 'left'
597 18 67 $isheader || 0
598 85 0 $delim || '|'
610 29 0 $self->{'tbl_align'}{@{$$self{'tbl_cols'};}[$i]} || 'auto'
618 57 0 $self->{'tbl_colalign'}{@{$$self{'tbl_cols'};}[$i]} || $self->{'options'}{'alignHeadRow'} || 'left'
841 0 4 $self->{'options'}{'headingStartChar'} || '|'
0 4 $self->{'options'}{'headingStopChar'} || '|'
2 2 $self->{'options'}{'headingAlign'} || 'center'
844 0 1 $self->{'options'}{'headingStartChar'} || '|'
0 1 $self->{'options'}{'headingStopChar'} || '|'
1 0 $self->{'options'}{'headingAlign'} || 'center'

or 3 conditions

line l !l&&r !l&&!r condition
251 0 0 0 $row < 0 or $row > scalar @{$self->{'tbl_rows'};}
277 5 0 0 defined $col and defined $direction or defined $col and ref $col eq 'HASH'
278 5 0 0 defined &find($col, $self->{'tbl_cols'}) or defined $col and ref $col eq 'HASH'
589 0 0 5 $self->{'options'}{'allowHTML'} || $self->{'options'}{'allowANSI'} || $self->{'options'}{'cb_count'}
610 0 0 29 $self->{'options'}{'allowHTML'} || $self->{'options'}{'allowANSI'} || $self->{'options'}{'cb_count'}
618 3 0 51 $self->{'options'}{'allowHTML'} || $self->{'options'}{'allowANSI'} || $self->{'options'}{'cb_count'}
625 9 0 143 $self->{'options'}{'allowHTML'} || $self->{'options'}{'allowANSI'} || $self->{'options'}{'cb_count'}
860 0 0 67 $self->{'options'}{'drawRowLine'} and $self->{'tbl_rowline'}{$i} and $i != scalar @{$self->{'tbl_rows'};} or defined $self->{'tbl_lines'}{$i} and $self->{'tbl_lines'}{$i} and $i != scalar @{$self->{'tbl_rows'};} and $i != scalar @{$self->{'tbl_rows'};}