Branch Coverage

blib/lib/Text/Report.pm
Criterion Covered Total %
branch 133 228 58.3


line true false branch
29 0 5 $@ ? :
87 0 4 if ($this{'Log'})
92 0 4 ref $this{'logfh'} ? :
93 4 0 $this{'debug'} ? :
94 3 1 $this{'debugv'} ? :
99 0 4 $this{'autoindex'} ? :
128 9 5 @_ ? :
134 9 18 if /^autoindex$/
135 1 17 if (defined $this{$_})
138 2 7 if defined $this{'debug'} and $this{'debug'} =~ /^(off|notice|error|warning|critical)$/i
140 2 7 if defined $this{'debugv'}
144 1 8 if defined $this{'useColHeaders'}
148 1 8 if defined $this{'sortby'} and $this{'sortby'} =~ /^\d+$/
151 1 8 if (defined $this{'width'})
163 2 7 if ($this{'column'})
165 1 1 unless $this{'column'} =~ /HASH/
168 0 1 unless /^\d+$/
177 2 6 if (defined $this{'blockPad'})
182 2 0 if defined $this{'blockPad'}{$_}
186 1 1 if ($@)
217 0 5 unless (defined $this{'name'})
231 0 5 if ($this{'name'} =~ /^\_block/)
250 0 5 if (defined $$self{'_block'}{'_profile'}{$blockname})
263 5 0 unless (defined $$self{'_block'}{'_profile'}{$blockname})
272 1 4 if (defined $this{'pad'}{'top'} and $this{'pad'}{'top'} =~ /^\d+$/) { }
280 1 4 if (defined $this{'pad'}{'bottom'} and $this{'pad'}{'bottom'} =~ /^\d+$/) { }
290 0 5 if ($@)
302 3 2 if (defined $this{'useColHeaders'}) { }
316 1 4 if (defined $this{'columnWidth'} and $this{'columnWidth'} =~ /^\d+$/ and $this{'columnWidth'} > 0) { }
332 1 4 if (defined $this{'columnAlign'} and $this{'columnAlign'} =~ /^(left|right|center)$/i)
347 1 4 if ($this{'column'}) { }
0 4 elsif (defined $this{'cols'} and $this{'cols'} =~ /^\d+$/ and $this{'cols'} > 0) { }
378 0 0 if ($tl_block_width > $pg_width)
388 0 0 if ($@)
416 5 0 if ($$self{'_page'}{'_profile'}{'report'}{'autoindex'}) { }
423 0 0 unless ($this{'order'} =~ /^\d+$/)
439 2 3 if (defined $this{'sortby'} and $this{'sortby'} =~ /^\d+$/)
447 2 3 if (defined $this{'sorttype'} and $this{'sorttype'} =~ /^(alpha|numeric)$/i)
455 2 3 if (defined $this{'orderby'} and $this{'orderby'} =~ /^(ascending|descending)$/i)
474 3 1 @_ ? :
478 0 3 unless $blockname = $this{'name'}
484 0 3 if $blockname =~ /^\_block$/
489 1 2 unless (defined $$self{'_block'}{'_profile'}{$blockname})
500 0 2 if (defined $this{'pad'}{'top'} and $this{'pad'}{'top'} =~ /^\d+$/) { }
508 0 2 if (defined $this{'pad'}{'bottom'} and $this{'pad'}{'bottom'} =~ /^\d+$/) { }
518 0 2 if ($@)
523 0 2 if defined $this{'title'}
528 1 1 if defined $this{'useColHeaders'}
533 0 2 if (defined $this{'order'} and $this{'order'} =~ /^\d+$/)
535 0 0 if ($$self{'_page'}{'_profile'}{'report'}{'autoindex'}) { }
547 0 2 if (defined $this{'sortby'} and $this{'sortby'} =~ /^\d+$/)
555 0 2 if (defined $this{'sorttype'} and $this{'sorttype'} =~ /^(alpha|numeric)$/i)
563 0 2 if (defined $this{'orderby'} and $this{'orderby'} =~ /^(ascending|descending)$/i)
581 18 0 @_ ? :
583 0 18 unless $number =~ /^\d+$/
585 0 18 unless (defined $blockname)
592 0 18 unless (defined $$self{'_block'}{'_profile'}{$blockname})
599 10 8 if (defined $this{'align'} and $this{'align'} =~ /^(left|right|center)$/i) { }
605 4 4 unless (exists $$self{'_block'}{'_profile'}{$blockname}{'column'}{$number}{'align'})
613 13 5 if (defined $this{'width'} and $this{'width'} =~ /^\d+$/ and $this{'width'} > 0) { }
619 4 1 unless (exists $$self{'_block'}{'_profile'}{$blockname}{'column'}{$number}{'width'})
627 13 5 if (defined $this{'head'}) { }
633 1 4 if ($$self{'_block'}{'_profile'}{$blockname}{'useColHeaders'})
635 0 1 unless (exists $$self{'_block'}{'_profile'}{$blockname}{'column'}{$number}{'head'})
663 3 0 if ($$self{'_page'}{'_profile'}{'report'}{'autoindex'}) { }
674 0 0 unless ($this{'order'} =~ /^\d+$/)
709 0 3 if (defined $this{'pad'}) { }
740 88 37 unless (defined $$self{'_block'}{'_profile'}{$blockname})
764 245 6 if (defined $$self{'_block'}{'_profile'}{$blockname}{'column'}{$col}{'head'})
780 9 28 unless ($$self{'_block'}{'_profile'}{$blockname}{'_append'})
786 3 6 if ($$self{'_block'}{'_profile'}{$blockname}{'title'})
788 3 0 if (not $$self{'_page'}{'_profile'}{'report'}{'asis'}) { }
810 3 0 unless ($$self{'_page'}{'_profile'}{'report'}{'asis'})
816 2 7 if ($$self{'_block'}{'_profile'}{$blockname}{'useColHeaders'})
825 0 2 if ($@)
849 0 2 if ($@)
856 3 6 if (@col_head > 1)
857 0 9 if (@col_head == 1)
879 0 47 if ($@)
911 3 0 if (defined $$self{'_order'}{'_block'}) { }
921 0 13 if ($this{'csv'})
930 1 12 if (defined $$self{'_block'}{'_profile'}{$blockname}{'pad'}{'top'} and $$self{'_block'}{'_profile'}{$blockname}{'pad'}{'top'} > 0)
932 0 1 if ($this{'print'}) { }
943 3 10 if (exists $$self{'_block'}{'_profile'}{$blockname}{'hdata'})
947 0 13 if ($this{'print'}) { }
954 0 53 if ($this{'print'}) { }
961 13 0 if (defined $$self{'_block'}{'_profile'}{$blockname}{'pad'}{'bottom'} and $$self{'_block'}{'_profile'}{$blockname}{'pad'}{'bottom'} > 0)
963 0 13 if ($this{'print'}) { }
986 3 0 @page ? :
998 1 0 @_ ? :
1103 6 31 unless $$self{'_block'}{'_profile'}{$blockname}{'sortby'}
1120 30 1 if ($$self{'_block'}{'_profile'}{$blockname}{'sorttype'} =~ /numeric/) { }
1125 30 0 if ($$self{'_block'}{'_profile'}{$blockname}{'orderby'} =~ /descending/) { }
1151 0 1 if ($$self{'_block'}{'_profile'}{$blockname}{'orderby'} =~ /descending/) { }
1179 0 22 unless ($length =~ /\d+/ and $length > 0)
1185 0 22 if (not $$self{'_page'}{'_line'}{$type}) { }
1208 98 0 unless $$self{'_debug'}{'_lev'}
1212 0 0 if ($level >= $$self{'_debug'}{'_lev'})
1214 0 0 if ($$self{'_debug'}{'_verbose'}) { }
1303 0 0 if ($type)
1307 0 0 if $AUTOLOAD =~ /::DESTROY$/
1311 0 0 unless ($meth =~ /^profile/)
1313 0 0 unless ($Text::Report::stor_loaded)
1320 0 0 unless (defined $this{'path'})
1327 0 0 unless (-e $this{'path'})
1339 0 0 unless (open F, "+>$tmp")
1357 0 0 if ($this{'name'}) { }
1363 0 0 unless ($this{'name'} =~ /^\w+$/ and not $this{'name'} =~ /^$/)
1381 0 0 if ($profile{'load'})
1391 0 0 if $@
1395 0 0 if $@
1399 0 0 if $@
1407 0 0 if ($profile{'save'})
1417 0 0 unless /^\_/