Branch Coverage

blib/lib/Data/Report/Base.pm
Criterion Covered Total %
branch 49 84 58.3


line true false branch
44 0 22 unless $self->_checkname($style)
48 15 0 if (my $c = $self->can("set_$arg")) { }
63 0 25 unless $$self{'_base_fdata'}
64 0 25 if $$self{'_base_started'}
70 0 25 unless $$self{'_base_out'}
71 0 25 unless $$self{'_base_style'}
72 25 0 unless $$self{'_base_topheading'}
74 22 3 unless $$self{'_base_heading'}
76 16 9 unless $$self{'_base_stylist'}
86 0 61 unless $$self{'_base_started'}
89 0 233 if $k =~ /^_/
90 0 233 unless defined $$self{'_base_fdata'}{$k}
99 0 25 unless $$self{'_base_started'}
106 0 20 if $$self{'_base_started'}
121 0 0 unless $self->_checkname($style)
138 93 0 if ($$col{'name'}) { }
139 0 93 unless $self->_checkname($$col{'name'})
148 0 93 unless $self->_checkname($$a{'style'})
172 0 8 unless defined $a
194 0 2 unless defined $$self{'_base_fdata'}{$fld}
197 0 2 if ($width =~ /^\+(\d+)$/) { }
1 1 elsif ($width =~ /^-(\d+)$/) { }
0 1 elsif ($width =~ /^(\d+)\%$/) { }
1 0 elsif ($width =~ /^\d+$/) { }
234 24 1 if (ref $out) { }
235 23 1 if (UNIVERSAL::isa($out, 'SCALAR')) { }
1 0 elsif (UNIVERSAL::isa($out, 'ARRAY')) { }
245 0 0 unless CORE::close $out
249 0 1 unless open my $fd, '>', $out
252 0 1 unless CORE::close $fd
261 0 25 if $stylist_code and not UNIVERSAL::isa($stylist_code, 'CODE')
277 0 22 if $heading_code and not UNIVERSAL::isa($heading_code, 'CODE')
291 0 25 if $heading_code and not UNIVERSAL::isa($heading_code, 'CODE')
299 19 6 unless $$self{'_base_topheading'}
308 1255 0 if $exp == $got
311 0 0 $exp == 1 ? :
0 0 $exp == 0 ? :
344 353 32 defined $cell ? :
346 96 289 unless $stylist
348 31 258 unless $cell
358 22 38 if ($$self{'_base_needhdr'})
360 10 12 if $self->can('_pageskip')