Branch Coverage

blib/lib/SVG/TT/Graph.pm
Criterion Covered Total %
branch 34 60 56.6


line true false branch
126 21 0 if ($self->can('_set_defaults')) { }
139 21 0 if ($self->can('_init'))
165 5 5 unless (defined $self->{'data'})
172 0 10 unless defined $self->{'config'}{'fields'} and ref $self->{'config'}{'fields'} eq 'ARRAY'
174 10 0 if (defined $conf->{'data'} and ref $conf->{'data'} eq 'ARRAY')
180 10 0 if defined $conf->{'title'}
216 0 21 unless $template_fh_sr
262 0 7 unless scalar @{$self->{'data'};} > 0
265 2 5 if $self->can('calculations')
293 0 7 if ($tt->error)
294 0 0 if $tt->error
298 0 7 if ($self->tidy)
299 0 0 if (eval 'require XML::Tidy') { }
308 0 0 if (defined $doctype)
319 0 7 if ($self->compress)
320 0 0 if (eval 'require Compress::Zlib') { }
354 14 14 unless (defined $self->{'config'}{'compress'})
358 14 14 if (defined $val)
380 14 14 unless (defined $self->{'config'}{'tidy'})
384 14 14 if (defined $val)
413 15 0 if ($num - 1 < scalar @colors)
431 0 2 if ($value == 0)
438 0 2 if ($value < 1 and $value > 0) { }
461 0 2 if (int $max / $division <= 2) { }
0 2 elsif (int $max / $division <= 5) { }
470 2 0 if ($division >= 1) { }
507 0 34 unless $_[0]
508 26 8 if (defined $_[0]{'config'}{$name}) { }
509 6 20 if (defined $_[1])
513 26 0 if defined $_[0]{'config'}{$name}