Branch Coverage

blib/lib/PDF/Builder/Annotation.pm
Criterion Covered Total %
branch 24 108 22.2


line true false branch
214 1 0 if (ref $page) { }
222 0 0 if ($page =~ m[^[#/](.+)])
229 0 1 if defined $opts{'rect'}
230 0 1 if defined $opts{'border'}
231 0 1 if defined $opts{'color'}
290 1 0 if ($page_number =~ /^\d+$/) { }
298 0 0 if ($page_number =~ m[^[#/](.+)$])
304 0 1 if defined $opts{'rect'}
305 0 1 if defined $opts{'border'}
306 0 1 if defined $opts{'color'}
346 0 1 if defined $opts{'rect'}
347 0 1 if defined $opts{'color'}
348 0 1 if defined $opts{'border'}
389 0 1 if defined $opts{'rect'}
390 0 1 if defined $opts{'color'}
391 0 1 if defined $opts{'border'}
455 2 0 if defined $opts{'rect'}
456 0 2 if defined $opts{'color'}
458 0 2 if defined $opts{'open'}
461 0 2 if exists $opts{'text'}
463 0 2 if (defined $opts{'opacity'})
469 0 2 if exists $opts{'icon'}
470 0 2 if $icon and not ref $icon
472 0 2 if $icon
560 0 0 if (scalar @pointList == 0 or scalar(@pointList) % 8)
574 0 0 if defined $opts{'open'}
575 0 0 if (defined $opts{'color'}) { }
582 0 0 if exists $opts{'text'}
584 0 0 if (defined $opts{'opacity'})
631 0 0 if defined $opts{'rect'}
632 0 0 if defined $opts{'border'}
633 0 0 if defined $opts{'color'}
636 0 0 if exists $opts{'text'}
727 0 0 if exists $opts{'icon'}
729 0 0 if defined $opts{'rect'}
731 0 0 if exists $opts{'text'}
733 0 0 if (defined $opts{'opacity'})
764 0 0 unless (defined $opts{'notrimpath'})
765 0 0 if ($cName =~ m(([^/\\]+)$))
770 0 0 if $icon and not ref $icon
772 0 0 if defined $opts{'color'}
785 0 0 if $icon
843 0 2 unless scalar @r == 4
903 0 0 if (scalar @b == 3) { }
0 0 elsif (scalar @b == 4) { }
973 0 0 if (scalar @color == 1 and $color[0] >= 0 and $color[0] <= 1.0) { }
0 0 elsif (scalar @color == 3 and $color[0] >= 0 and $color[0] <= 1.0 and $color[1] >= 0 and $color[1] <= 1.0 and $color[2] >= 0 and $color[2] <= 1.0) { }
0 0 elsif (scalar @color == 4 and $color[0] >= 0 and $color[0] <= 1.0 and $color[1] >= 0 and $color[1] <= 1.0 and $color[2] >= 0 and $color[2] <= 1.0 and $color[3] >= 0 and $color[3] <= 1.0) { }
1051 0 0 $bool ? :
1075 0 0 if (defined $opts{'-rect'} and not defined $opts{'rect'})
1081 0 0 if defined $opts{'rect'}
1085 0 0 if ($icon eq 'None') { }
0 0 elsif (ref $icon) { }
1192 0 2 if ($opts[$i] =~ /^-(.*)$/)