Branch Coverage

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


line true false branch
43 0 22 unless $self->_checkname($style)
47 15 0 if (my $c = $self->can("set_$arg")) { }
62 0 26 unless $self->{'_base_fdata'}
63 0 26 if $self->{'_base_started'}
69 0 26 unless $self->{'_base_out'}
70 0 26 unless $self->{'_base_style'}
72 26 0 unless $self->{'_base_topheading'}
74 22 4 unless $self->{'_base_heading'}
76 17 9 unless $self->{'_base_stylist'}
85 0 62 unless $self->{'_base_started'}
88 0 237 if $k =~ /^_/
90 0 237 unless defined $self->{'_base_fdata'}{$k}
98 0 26 unless $self->{'_base_started'}
105 0 20 if $self->{'_base_started'}
120 0 0 unless $self->_checkname($style)
137 93 0 if ($col->{'name'}) { }
139 0 93 unless $self->_checkname($col->{'name'})
148 0 93 unless $self->_checkname($a->{'style'})
171 0 8 unless defined $a
194 0 2 unless defined $self->{'_base_fdata'}{$fld}
196 0 2 if ($width =~ /^\+(\d+)$/) { }
1 1 elsif ($width =~ /^-(\d+)$/) { }
0 1 elsif ($width =~ /^(\d+)\%$/) { }
1 0 elsif ($width =~ /^\d+$/) { }
233 25 1 if (ref $out) { }
234 24 1 if (UNIVERSAL::isa($out, 'SCALAR')) { }
1 0 elsif (UNIVERSAL::isa($out, 'ARRAY')) { }
244 0 0 unless CORE::close $out
248 0 1 unless open my $fd, '>', $out
251 0 1 unless CORE::close $fd
260 0 26 if $stylist_code and not UNIVERSAL::isa($stylist_code, 'CODE')
276 0 22 if $heading_code and not UNIVERSAL::isa($heading_code, 'CODE')
290 0 26 if $heading_code and not UNIVERSAL::isa($heading_code, 'CODE')
298 20 6 unless $self->{'_base_topheading'}
307 1273 0 if $exp == $got
310 0 0 $exp == 1 ? :
0 0 $exp == 0 ? :
343 361 32 defined $cell ? :
345 104 289 unless $stylist
347 31 258 unless $cell
357 23 38 if ($self->{'_base_needhdr'})
359 10 13 if $self->can('_pageskip')