Branch Coverage

lib/Graph/ChartSVG.pm
Criterion Covered Total %
branch 20 172 11.6


line true false branch
164 0 0 if (exists $self->{'tag'}) { }
184 0 0 if (defined $self->{'Layer'}[$m] and exists $self->{'Layer'}[$m]{'label'} and $self->{'Layer'}[$m]{'label'} eq $label)
191 0 0 wantarray ? :
204 0 0 if (exists $self->{$type})
222 3 0 if (exists $self->{$type})
226 0 3 if (defined $where) { }
228 0 0 if ($where >= 0) { }
230 0 0 unless (exists $what->{'label'})
234 0 0 if (defined $insert) { }
246 0 0 unless (exists $what->{'label'})
274 1 0 if ($self->bg_color)
301 0 0 if (ref $layer eq 'Graph::ChartSVG::Data')
303 0 0 if (defined $layer->{'data_set'})
307 0 0 if ($layer->{'type'} =~ /_up$/) { }
0 0 elsif ($layer->{'type'} =~ /_down$/) { }
320 0 0 if ($layer->{'offset'}) { }
330 0 0 if (ref $layer->{'data_set'}[0] eq 'ARRAY') { }
337 0 0 if ($layer->{'type'} =~ /_stack/) { }
339 0 0 if ($layer->{'type'} =~ /line|bar/)
356 0 0 if $dot >= $self->active_size->[0]
358 0 0 $plot_val * $scale > $self->active_size->[1] ? :
368 0 0 if ($layer->{'type'} =~ /bar/) { }
412 0 0 if (exists $layer->{'label'}) { }
435 0 0 if ($layer->{'type'} =~ /line|bar/)
445 0 0 if $dot >= $self->active_size->[0]
447 0 0 $plot_val * $scale > $self->active_size->[1] ? :
456 0 0 if ($layer->{'type'} =~ /bar/) { }
492 0 0 if (exists $layer->{'label'}) { }
513 0 0 if (ref $layer eq 'Graph::ChartSVG::Glyph')
557 0 0 if (exists $layer->{'type'} and $layer->{'type'} eq 'image') { }
568 0 0 if (exists $layer->{'type'} and $layer->{'type'} eq 'text') { }
0 0 elsif (exists $layer->{'type'} and $layer->{'type'} eq 'line') { }
0 0 elsif (exists $layer->{'type'} and $layer->{'type'} eq 'ellipse') { }
0 0 elsif (exists $layer->{'type'} and $layer->{'type'} eq 'image') { }
577 0 0 if ($f_style =~ /(italic)|(oblique)/)
581 0 0 if ($f_style =~ /bold/)
623 0 0 unless ref $point eq 'ARRAY'
630 0 0 if (exists $layer->{'filled'} and $layer->{'filled'} == 1) { }
663 0 0 if (exists $layer->{'label'}) { }
691 0 0 if (exists $layer->{'filled'} and $layer->{'filled'} == 1) { }
759 0 0 if (ref $layer eq 'Graph::ChartSVG::Overlay')
764 0 0 if ($layer->{'type'} eq 'v')
786 0 0 if ($layer->{'type'} eq 'h')
819 1 0 if (defined $self->grid)
821 1 0 if (defined $self->grid->x)
831 1 0 if defined $self->grid->x->label and ref $self->grid->x->label->text eq 'ARRAY'
835 0 1 if defined $self->grid->x->label2 and ref $self->grid->x->label2->text eq 'ARRAY'
862 5 0 if (defined $self->grid->x->label and defined $self->grid->x->label->text->[$text_indx])
873 0 5 if ($f_style =~ /(italic)|(oblique)/)
877 0 5 if ($f_style =~ /bold/)
886 0 5 if ($self->grid->x->label->align =~ /left/i) { }
900 0 0 if ($self->grid->x->label->rotation)
934 0 5 if (defined $self->grid->x->label2 and defined $self->grid->x->label2->text->[$text_indx])
945 0 0 if ($f_style =~ /(italic)|(oblique)/)
949 0 0 if ($f_style =~ /bold/)
957 0 0 if ($self->grid->x->label2->align =~ /right/i) { }
971 0 0 if ($self->grid->x->label2->rotation)
1006 0 1 if (defined $self->grid->y)
1016 0 0 if defined $self->grid->y->label and ref $self->grid->y->label->text eq 'ARRAY'
1020 0 0 if defined $self->grid->y->label2 and ref $self->grid->y->label2->text eq 'ARRAY'
1045 0 0 if (defined $self->grid->y->label and defined $self->grid->y->label->text->[$nbr])
1052 0 0 if ($f_style =~ /(italic)|(oblique)/)
1056 0 0 if ($f_style =~ /bold/)
1070 0 0 if ($self->grid->y->label->align =~ /left/i) { }
1083 0 0 if ($self->grid->y->label->rotation)
1116 0 0 if (defined $self->grid->y->label2 and defined $self->grid->y->label2->text->[$nbr])
1123 0 0 if ($f_style =~ /(italic)|(oblique)/)
1127 0 0 if ($f_style =~ /bold/)
1142 0 0 if ($self->grid->y->label2->align =~ /left/i) { }
1155 0 0 if ($self->grid->y->label2->rotation)
1191 1 0 if (defined $self->frame)
1211 0 0 if (exists $self->{'tag'} and $self->{'tag'})
1275 1 0 if (exists $object->{'init'})
1281 1 0 if ($#data_out <= $#data_in) { }
1290 311 0 if (scalar @slice) { }
1292 0 311 if (exists $object->{'type'} and $object->{'type'} =~ /^nrz$/i)
1296 0 0 if ($slice[$idx] == 0) { }
1306 311 0 if (scalar @slice > 1) { }
1325 0 0 if (exists $object->{'type'} and $object->{'type'} =~ /^line|nrz$/i) { }
1340 0 0 if $dot >= $width_in
1341 0 0 if ($object->{'type'} =~ /^nrz$/i and not $val2 && $val)
1355 0 0 if ($inc > 0) { }
1357 0 0 $val > $val2 ? :
1361 0 0 $val < $val2 ? :
1374 0 0 $ind > $#data_in ? :
1378 1 0 wantarray ? :