Branch Coverage

lib/ChordPro/lib/SVGPDF/Contrib/PathExtract.pm
Criterion Covered Total %
branch 0 178 0.0


line true false branch
48 0 0 if (lc $curve_type eq $curve_type) { }
0 0 elsif (uc $curve_type eq $curve_type) { }
70 0 0 unless ($path)
77 0 0 unless (@values)
86 0 0 if ($value->{'type'} eq 'cubic-bezier') { }
113 0 0 if ($t eq 'moveto') { }
0 0 elsif ($t eq 'cubic-bezier') { }
0 0 elsif ($t eq 'closepath') { }
0 0 elsif ($t eq 'vertical-line-to') { }
0 0 elsif ($t eq 'horizontal-line-to') { }
0 0 elsif ($t eq 'line-to') { }
0 0 elsif ($t eq 'arc') { }
352 0 0 unless ($path)
358 0 0 if ($options_ref) { }
359 0 0 if (ref $options_ref ne "HASH")
366 0 0 unless (wantarray)
370 0 0 if ($verbose)
375 0 0 unless ($path[0] =~ /^$wsp*$/ and $path[1] =~ /[Mm]/)
384 0 0 unless (defined $values)
388 0 0 unless ($original =~ /$moveto|$drawto_command/x)
399 0 0 if ($ucc eq 'A') { }
408 0 0 if ($verbose)
412 0 0 if ($ucc eq 'C') { }
0 0 elsif ($ucc eq 'S') { }
0 0 elsif ($ucc eq 'L') { }
0 0 elsif ($ucc eq 'Z') { }
0 0 elsif ($ucc eq 'Q') { }
0 0 elsif ($ucc eq 'T') { }
0 0 elsif ($ucc eq 'H') { }
0 0 elsif ($ucc eq 'V') { }
0 0 elsif ($ucc eq 'A') { }
0 0 elsif ($ucc eq 'M') { }
414 0 0 if (@numbers % $expect_numbers != 0)
439 0 0 if (@numbers % $expect_numbers != 0)
462 0 0 if (@numbers % $expect_numbers != 0)
470 0 0 if (@numbers > 0)
484 0 0 if (@numbers % $expect_numbers != 0)
503 0 0 if (@numbers % $expect_numbers != 0)
546 0 0 if (@numbers % $expect_numbers != 0)
564 0 0 if (@numbers < $expect_numbers)
567 0 0 if (@numbers % $expect_numbers != 0)
580 0 0 if (@numbers > $expect_numbers)
595 0 0 if ($absolute)
596 0 0 if ($verbose)
604 0 0 if ($element->{'type'} eq 'moveto') { }
0 0 elsif ($element->{'type'} eq 'line-to') { }
0 0 elsif ($element->{'type'} eq 'horizontal-line-to') { }
0 0 elsif ($element->{'type'} eq 'vertical-line-to') { }
0 0 elsif ($element->{'type'} eq 'cubic-bezier') { }
0 0 elsif ($element->{'type'} eq 'smooth-cubic-bezier') { }
0 0 elsif ($element->{'type'} eq 'quadratic-bezier') { }
0 0 elsif ($element->{'type'} eq 'smooth-quadratic-bezier') { }
0 0 elsif ($element->{'type'} eq 'arc') { }
0 0 elsif ($element->{'type'} eq 'closepath') { }
606 0 0 if ($element->{'position'} eq "relative")
608 0 0 if ($ip) { }
609 0 0 if (ref $ip ne "ARRAY" or scalar @$ip != 2)
631 0 0 if ($element->{'position'} eq "relative")
634 0 0 if ($begin_drawing)
635 0 0 if ($verbose)
644 0 0 if ($element->{'position'} eq "relative")
647 0 0 if ($begin_drawing)
648 0 0 if ($verbose)
657 0 0 if ($element->{'position'} eq "relative")
660 0 0 if ($begin_drawing)
661 0 0 if ($verbose)
670 0 0 if ($element->{'position'} eq "relative")
675 0 0 if ($begin_drawing)
676 0 0 if ($verbose)
685 0 0 if ($element->{'position'} eq "relative")
689 0 0 if ($no_smooth)
692 0 0 if ($previous and $previous->{'type'} eq 'cubic-bezier') { }
701 0 0 if ($begin_drawing)
702 0 0 if ($verbose)
711 0 0 if ($element->{'position'} eq "relative")
715 0 0 if ($begin_drawing)
716 0 0 if ($verbose)
725 0 0 if ($element->{'position'} eq "relative")
728 0 0 if ($no_smooth)
731 0 0 if ($previous and $previous->{'type'} eq 'quadratic-bezier') { }
740 0 0 if ($begin_drawing)
741 0 0 if ($verbose)
751 0 0 if ($element->{'position'} eq "relative")
755 0 0 if ($begin_drawing)
756 0 0 if ($verbose)
765 0 0 if ($verbose)
772 0 0 unless ($element->{'svg_key'})
792 0 0 if ($n_coords % 2 != 0)
799 0 0 $position eq 'absolute' ? :