Condition Coverage

lib/Graph/ChartSVG.pm
Criterion Covered Total %
condition 22 291 7.5


and 3 conditions

line !l l&&!r l&&r condition
184 0 0 0 defined $self->{'Layer'}[$m] and exists $self->{'Layer'}[$m]{'label'}
0 0 0 defined $self->{'Layer'}[$m] and exists $self->{'Layer'}[$m]{'label'} and $self->{'Layer'}[$m]{'label'} eq $label
557 0 0 0 exists $layer->{'type'} and $layer->{'type'} eq 'image'
568 0 0 0 exists $layer->{'type'} and $layer->{'type'} eq 'text'
0 0 0 exists $layer->{'type'} and $layer->{'type'} eq 'line'
0 0 0 exists $layer->{'type'} and $layer->{'type'} eq 'ellipse'
0 0 0 exists $layer->{'type'} and $layer->{'type'} eq 'image'
630 0 0 0 exists $layer->{'filled'} and $layer->{'filled'} == 1
691 0 0 0 exists $layer->{'filled'} and $layer->{'filled'} == 1
831 0 0 1 defined $self->grid->x->label and ref $self->grid->x->label->text eq 'ARRAY'
835 1 0 0 defined $self->grid->x->label2 and ref $self->grid->x->label2->text eq 'ARRAY'
862 0 0 5 defined $self->grid->x->label and defined $self->grid->x->label->text->[$text_indx]
934 5 0 0 defined $self->grid->x->label2 and defined $self->grid->x->label2->text->[$text_indx]
1016 0 0 0 defined $self->grid->y->label and ref $self->grid->y->label->text eq 'ARRAY'
1020 0 0 0 defined $self->grid->y->label2 and ref $self->grid->y->label2->text eq 'ARRAY'
1045 0 0 0 defined $self->grid->y->label and defined $self->grid->y->label->text->[$nbr]
1116 0 0 0 defined $self->grid->y->label2 and defined $self->grid->y->label2->text->[$nbr]
1211 1 0 0 exists $self->{'tag'} and $self->{'tag'}
1292 311 0 0 exists $object->{'type'} and $object->{'type'} =~ /^nrz$/i
1325 0 0 0 exists $object->{'type'} and $object->{'type'} =~ /^line|nrz$/i
1341 0 0 0 $val2 && $val
0 0 0 $object->{'type'} =~ /^nrz$/i and not $val2 && $val

or 2 conditions

line l !l condition
276 1 0 '#' . unpack('a6', $self->bg_color) || 0
357 0 0 $raw_val || 0
381 0 0 eval hex(unpack 'a6 a2', $layer->{'color'}[$stack_idx]) / 255 || 1
0 0 '#' . unpack('a6', $layer->{'color'}[$stack_idx]) || 0
0 0 '#' . unpack('a6', $layer->{'color'}[$stack_idx]) || 0
0 0 eval hex((unpack 'a6 a2', $layer->{'color'}[$stack_idx])[1]) / 255 || 1
391 0 0 eval hex((unpack 'a6 a2', $layer->{'color'}[$stack_idx])[1]) / 255 || 1
0 0 '#' . unpack('a6', $layer->{'color'}[$stack_idx]) || 0
446 0 0 $raw_val || 0
469 0 0 eval hex((unpack 'a6 a2', $layer->{'color'})[1]) / 255 || 1
0 0 '#' . unpack('a6', $layer->{'color'}) || 0
0 0 '#' . unpack('a6', $layer->{'color'}) || 0
0 0 eval hex((unpack 'a6 a2', $layer->{'color'})[1]) / 255 || 1
479 0 0 eval hex((unpack 'a6 a2', $layer->{'color'})[1]) / 255 || 1
0 0 '#' . unpack('a6', $layer->{'color'}) || 0
572 0 0 exists $set->{'rotation'} && $set->{'rotation'} || 0
574 0 0 $set->{'font_weight'} || $layer->font_weight || 'normal'
586 0 0 $set->{'letter_spacing'} || $layer->letter_spacing || 'normal'
587 0 0 $set->{'word_spacing'} || $layer->word_spacing || 'normal'
588 0 0 $set->{'stretch'} || $layer->stretch || 'normal'
604 0 0 $set->{'x'} || 0
0 0 -$set->{'y'} || 0
0 0 $set->{'color'} || $layer->color || 'ffffff'
0 0 $set->{'stroke'} || $set->{'color'} || $layer->color || '000000'
637 0 0 eval hex((unpack 'a6 a2', $color_hex)[1]) / 255 || 1
0 0 '#' . unpack('a6', $color_hex) || 0
0 0 '#' . unpack('a6', $color_hex) || 0
0 0 eval hex((unpack 'a6 a2', $color_hex)[1]) / 255 || 1
650 0 0 eval hex((unpack 'a6 a2', $color_hex)[1]) / 255 || 1
0 0 '#' . unpack('a6', $color_hex) || 0
684 0 0 $set->{'cx'} + $X || 0
685 0 0 $set->{'cy'} || 0
686 0 0 $set->{'rx'} || 0
687 0 0 $set->{'ry'} || 0
696 0 0 eval hex((unpack 'a6 a2', $color_hex)[1]) / 255 || 1
0 0 '#' . unpack('a6', $color_hex) || 0
0 0 '#' . unpack('a6', $color_hex) || 0
0 0 eval hex((unpack 'a6 a2', $color_hex)[1]) / 255 || 1
709 0 0 eval hex((unpack 'a6 a2', $color_hex)[1]) / 255 || 1
0 0 '#' . unpack('a6', $color_hex) || 0
740 0 0 $set->{'x'} || 0
0 0 -$set->{'y'} || 0
774 0 0 eval hex((unpack 'a6 a2', $color_hex)[1]) / 255 || 1
0 0 '#' . unpack('a6', $color_hex) || 0
0 0 eval hex((unpack 'a6 a2', $color_hex)[1]) / 255 || 1
795 0 0 eval hex((unpack 'a6 a2', $color_hex)[1]) / 255 || 1
0 0 '#' . unpack('a6', $color_hex) || 0
0 0 eval hex((unpack 'a6 a2', $color_hex)[1]) / 255 || 1
828 1 0 $self->grid->x->thickness || 1
844 0 5 eval hex((unpack 'a6 a2', $color_hex)[1]) / 255 || 1
5 0 '#' . unpack('a6', $color_hex) || 0
865 0 5 $self->grid->x->label->rotation / 180 * 3.1415926535897931 || 0
872 0 5 $self->grid->x->label->style || ''
888 0 0 $text_color || 'ffffff'
0 0 $text_color || '000000'
907 5 0 $text_color || 'ffffff'
5 0 $text_color || '000000'
937 0 0 $self->grid->x->label2->rotation / 180 * 3.1415926535897931 || 0
943 0 0 $self->grid->x->label2->style || ''
959 0 0 $text_color || 'ffffff'
0 0 $text_color || '000000'
978 0 0 $text_color || 'ffffff'
0 0 $text_color || '000000'
1013 0 0 $self->grid->y->thickness || 1
1028 0 0 eval hex((unpack 'a6 a2', $color_hex)[1]) / 255 || 1
0 0 '#' . unpack('a6', $color_hex) || 0
1050 0 0 $self->grid->y->label->style || ''
1061 0 0 $self->grid->y->label->rotation / 180 * 3.1415926535897931 || 0
1072 0 0 $text_color || 'ffffff'
0 0 $text_color || '000000'
1090 0 0 $text_color || 'ffffff'
0 0 $text_color || '000000'
1121 0 0 $self->grid->y->label2->style || ''
1132 0 0 $self->grid->y->label2->rotation / 180 * 3.1415926535897931 || 0
1144 0 0 $text_color || 'ffffff'
0 0 $text_color || '000000'
1162 0 0 $text_color || 'ffffff'
0 0 $text_color || '000000'
1202 1 0 $self->frame->{'thickness'} || 0
1238 0 0 $data->[$c_idx][$line] || 0
1251 1 0 $object->{'start'} || 0
1252 0 1 $object->{'percentile'} || 0.95
1262 1 0 $perc[$prec_ind] || 0
1263 0 1 &min(@data_in) || 0
1278 1 0 $object->{'init'} or 0
1332 0 0 ($ind > $#data_in ? $data_in[-1] : $data_in[$ind]) || 0
1333 0 0 ($ind + 1 > $#data_in ? $data_in[-1] : $data_in[$ind + 1]) || 0
1336 0 0 $val1 || 0
1374 0 0 $data_in[-1] || 0
0 0 $data_in[$ind] || 0

or 3 conditions

line l !l&&r !l&&!r condition
576 0 0 0 $set->{'style'} || $layer->style
604 0 0 0 $set->{'font'} || $layer->font
0 0 0 $set->{'size'} || $layer->size
0 0 0 $set->{'anchor'} || $layer->anchor
629 0 0 0 $set->{'color'} || $layer->{'color'}
637 0 0 0 $set->{'thickness'} || $layer->{'thickness'}
650 0 0 0 $set->{'thickness'} || $layer->{'thickness'}
690 0 0 0 $set->{'color'} || $layer->{'color'}
696 0 0 0 $set->{'thickness'} || $layer->{'thickness'}
709 0 0 0 $set->{'thickness'} || $layer->{'thickness'}
864 5 0 0 $self->grid->x->label->color || $color_hex
936 0 0 0 $self->grid->x->label2->color || $color_hex
1047 0 0 0 $self->grid->y->label->color || $color_hex
1118 0 0 0 $self->grid->y->label2->color || $color_hex
1253 1 0 0 $object->{'end'} || $width_out