Branch Coverage

blib/lib/Excel/Writer/XLSX/Drawing.pm
Criterion Covered Total %
branch 72 80 90.0


line true false branch
71 508 20 if ($self->{'_embedded'}) { }
196 122 456 if ($anchor == 2) { }
1 455 elsif ($anchor == 3) { }
204 0 578 if $shape->{'_editAs'}
226 407 171 if ($type == 1) { }
127 44 elsif ($type == 2) { }
270 19 1 if ($self->{'_orientation'} == 0) { }
509 422 5 unless ($name)
547 124 476 if ($description and not $decorative)
551 27 573 if ($url_rel_index or $decorative) { }
554 26 1 if ($url_rel_index)
559 2 25 if ($decorative)
592 1 25 if $tip
689 408 21 if ($self->{'_embedded'}) { }
882 11 33 if ($shape->{'_connect'}) { }
909 16 17 if ($shape->{'_text'})
932 11 1 unless defined $shape->{'_name'}
940 11 1 if ($shape->{'_start'})
946 11 1 if ($shape->{'_end'})
975 0 33 if $shape->{'_txBox'}
1228 0 44 if (length $fill > 1) { }
1262 6 166 if $rotation
1263 6 166 if $shape->{'_flip_h'}
1264 3 169 if $shape->{'_flip_v'}
1333 171 0 if $shape->{'_type'}
1356 45 127 if (defined $shape->{'_adjustments'})
1360 6 166 if (@$adjustments) { }
1368 12 4 $shape->{'_connect'} ? :
1397 0 61 unless defined $rgb
1428 45 0 if (length $line > 1) { }
1437 1 44 if ($shape->{'_line_type'})
1443 11 34 if ($shape->{'_connect'}) { }
1491 2 14 unless defined $rotation
1504 2 14 unless defined $size
1508 2 14 unless defined $bold
1511 2 14 unless defined $italic
1514 0 16 $underline ? :
1517 0 16 $strike ? :
1532 14 2 if (defined $color) { }
1543 2 14 unless defined $font