Condition Coverage

blib/lib/Text/ASCIITable.pm
Criterion Covered Total %
condition 62 124 50.0


and 3 conditions

line !l l&&!r l&&r condition
119 2 0 40 defined $$_[$num] && $$_[$num]
168 42 0 0 scalar @_ > scalar @{$$self{'tbl_cols'};} and ref $_[0] ne 'ARRAY'
171 0 41 1 scalar @_ > 0 and ref $_[0] eq 'ARRAY'
199 17 0 140 defined @{$_;}[$num] && $self->count(@{$_;}[$num])
242 1 0 0 defined $row and ref $row eq 'ARRAY'
276 0 0 5 defined $col and defined $direction
0 0 0 defined $col and ref $col eq 'HASH'
277 0 0 0 defined $col and ref $col eq 'HASH'
299 0 0 0 defined $col and defined $direction
318 0 0 1 defined $col and defined $width
350 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
578 5 0 0 $tablewidth - 4 < $self->count($text) and $opt eq 'title'
604 57 161 29 $isheader != 1 and defined $$self{'tbl_align'}{@{$$self{'tbl_cols'};}[$i]}
859 67 0 0 $$self{'options'}{'drawRowLine'} and $$self{'tbl_rowline'}{$i}
67 0 0 $$self{'options'}{'drawRowLine'} and $$self{'tbl_rowline'}{$i} and $i != scalar @{$$self{'tbl_rows'};}
66 0 1 defined $$self{'tbl_lines'}{$i} and $$self{'tbl_lines'}{$i}
66 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'};}
875 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'
952 9 2 6 $left != int $left and $left > 0.4

or 2 conditions

line l !l condition
67 8 6 $_[1] || {}
88 1 13 $$self{'options'}{'alignHeadRow'} || 'auto'
89 0 14 $$self{'options'}{'undef_as'} || ''
90 1 13 $$self{'options'}{'chaining'} || 0
187 4 117 $$self{'tbl_width'}{$colname} || 0
535 1 4 $$self{'options'}{$name} || undef
584 5 0 $align || 'left'
596 18 67 $isheader || 0
597 85 0 $delim || '|'
607 29 0 $$self{'tbl_align'}{@{$$self{'tbl_cols'};}[$i]} || 'auto'
615 57 0 $$self{'tbl_colalign'}{@{$$self{'tbl_cols'};}[$i]} || $$self{'options'}{'alignHeadRow'} || 'left'
840 0 4 $$self{'options'}{'headingStartChar'} || '|'
0 4 $$self{'options'}{'headingStopChar'} || '|'
2 2 $$self{'options'}{'headingAlign'} || 'center'
843 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
250 0 0 0 $row < 0 or $row > scalar @{$$self{'tbl_rows'};}
276 5 0 0 defined $col and defined $direction or defined $col and ref $col eq 'HASH'
277 5 0 0 defined &find($col, $$self{'tbl_cols'}) or defined $col and ref $col eq 'HASH'
584 0 0 5 $$self{'options'}{'allowHTML'} || $$self{'options'}{'allowANSI'} || $$self{'options'}{'cb_count'}
607 0 0 29 $$self{'options'}{'allowHTML'} || $$self{'options'}{'allowANSI'} || $$self{'options'}{'cb_count'}
615 6 0 51 $$self{'options'}{'allowHTML'} || $$self{'options'}{'allowANSI'} || $$self{'options'}{'cb_count'}
620 18 0 143 $$self{'options'}{'allowHTML'} || $$self{'options'}{'allowANSI'} || $$self{'options'}{'cb_count'}
859 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'};}