Branch Coverage

blib/lib/PDF/Builder/Annotation.pm
Criterion Covered Total %
branch 59 208 28.3


line true false branch
104 0 1 if (defined $opts{'-rect'} and not defined $opts{'rect'})
105 0 1 if (defined $opts{'-border'} and not defined $opts{'border'})
106 0 1 if (defined $opts{'-color'} and not defined $opts{'color'})
109 1 0 if (ref $page) { }
119 0 1 if defined $opts{'rect'}
120 0 1 if defined $opts{'border'}
121 0 1 if defined $opts{'color'}
150 0 1 if (defined $opts{'-rect'} and not defined $opts{'rect'})
151 0 1 if (defined $opts{'-color'} and not defined $opts{'color'})
152 0 1 if (defined $opts{'-border'} and not defined $opts{'border'})
161 0 1 if defined $opts{'rect'}
162 0 1 if defined $opts{'color'}
163 0 1 if defined $opts{'border'}
188 0 1 if (defined $opts{'-rect'} and not defined $opts{'rect'})
189 0 1 if (defined $opts{'-color'} and not defined $opts{'color'})
190 0 1 if (defined $opts{'-border'} and not defined $opts{'border'})
197 0 1 if defined $opts{'rect'}
198 0 1 if defined $opts{'color'}
199 0 1 if defined $opts{'border'}
223 0 1 if (defined $opts{'-rect'} and not defined $opts{'rect'})
224 0 1 if (defined $opts{'-color'} and not defined $opts{'color'})
225 0 1 if (defined $opts{'-border'} and not defined $opts{'border'})
232 0 1 if defined $opts{'rect'}
233 0 1 if defined $opts{'color'}
234 0 1 if defined $opts{'border'}
287 0 2 if (defined $opts{'-rect'} and not defined $opts{'rect'})
288 0 2 if (defined $opts{'-color'} and not defined $opts{'color'})
289 0 2 if (defined $opts{'-border'} and not defined $opts{'border'})
290 0 2 if (defined $opts{'-open'} and not defined $opts{'open'})
291 0 2 if (defined $opts{'-text'} and not defined $opts{'text'})
292 0 2 if (defined $opts{'-opacity'} and not defined $opts{'opacity'})
293 0 2 if (defined $opts{'-icon'} and not defined $opts{'icon'})
298 2 0 if defined $opts{'rect'}
299 0 2 if defined $opts{'color'}
301 0 2 if defined $opts{'open'}
304 0 2 if exists $opts{'text'}
306 0 2 if (defined $opts{'opacity'})
312 0 2 if exists $opts{'icon'}
313 0 2 if $icon and not ref $icon
315 0 2 if $icon
394 0 0 if (defined $opts{'-color'} and not defined $opts{'color'})
395 0 0 if (defined $opts{'-open'} and not defined $opts{'open'})
396 0 0 if (defined $opts{'-text'} and not defined $opts{'text'})
397 0 0 if (defined $opts{'-opacity'} and not defined $opts{'opacity'})
400 0 0 if (scalar @pointList == 0 or scalar(@pointList) % 8)
414 0 0 if defined $opts{'open'}
415 0 0 if (defined $opts{'color'}) { }
422 0 0 if exists $opts{'text'}
424 0 0 if (defined $opts{'opacity'})
448 0 0 if (defined $opts{'-rect'} and not defined $opts{'rect'})
449 0 0 if (defined $opts{'-color'} and not defined $opts{'color'})
450 0 0 if (defined $opts{'-border'} and not defined $opts{'border'})
451 0 0 if (defined $opts{'-text'} and not defined $opts{'text'})
468 0 0 if defined $opts{'rect'}
469 0 0 if defined $opts{'border'}
470 0 0 if defined $opts{'color'}
473 0 0 if exists $opts{'text'}
555 0 0 if (defined $opts{'-rect'} and not defined $opts{'rect'})
556 0 0 if (defined $opts{'-color'} and not defined $opts{'color'})
558 0 0 if (defined $opts{'-text'} and not defined $opts{'text'})
559 0 0 if (defined $opts{'-opacity'} and not defined $opts{'opacity'})
560 0 0 if (defined $opts{'-icon'} and not defined $opts{'icon'})
561 0 0 if (defined $opts{'-notrimpath'} and not defined $opts{'notrimpath'})
564 0 0 if exists $opts{'icon'}
566 0 0 if defined $opts{'rect'}
568 0 0 if exists $opts{'text'}
570 0 0 if (defined $opts{'opacity'})
601 0 0 unless (defined $opts{'notrimpath'})
602 0 0 if ($cName =~ m(([^/\\]+)$))
607 0 0 if $icon and not ref $icon
609 0 0 if defined $opts{'color'}
622 0 0 if $icon
671 0 2 unless scalar @r == 4
722 0 0 if (scalar @b == 3) { }
0 0 elsif (scalar @b == 4) { }
778 0 0 $bool ? :
802 0 2 if (defined $position{'-fit'} and not defined $position{'fit'})
803 0 2 if (defined $position{'-fith'} and not defined $position{'fith'})
804 0 2 if (defined $position{'-fitb'} and not defined $position{'fitb'})
805 0 2 if (defined $position{'-fitbh'} and not defined $position{'fitbh'})
806 0 2 if (defined $position{'-fitv'} and not defined $position{'fitv'})
807 0 2 if (defined $position{'-fitbv'} and not defined $position{'fitbv'})
808 0 2 if (defined $position{'-fitr'} and not defined $position{'fitr'})
809 0 2 if (defined $position{'-xyz'} and not defined $position{'xyz'})
811 2 0 if (ref $page) { }
815 0 2 if (defined $position{'fit'}) { }
0 2 elsif (defined $position{'fith'}) { }
0 2 elsif (defined $position{'fitb'}) { }
0 2 elsif (defined $position{'fitbh'}) { }
0 2 elsif (defined $position{'fitv'}) { }
0 2 elsif (defined $position{'fitbv'}) { }
0 2 elsif (defined $position{'fitr'}) { }
0 2 elsif (defined $position{'xyz'}) { }
828 0 0 unless scalar @{$position{'fitr'};} == 4
831 0 0 unless scalar @{$position{'xyz'};} == 3
832 0 0 defined $_ ? :
836 0 6 defined $_ ? :
893 0 0 if (scalar @color == 1 and $color[0] >= 0 and $color[0] <= 1) { }
0 0 elsif (scalar @color == 3 and $color[0] >= 0 and $color[0] <= 1 and $color[1] >= 0 and $color[1] <= 1 and $color[2] >= 0 and $color[2] <= 1) { }
0 0 elsif (scalar @color == 4 and $color[0] >= 0 and $color[0] <= 1 and $color[1] >= 0 and $color[1] <= 1 and $color[2] >= 0 and $color[2] <= 1 and $color[3] >= 0 and $color[3] <= 1) { }
929 0 0 if (defined $opts{'-rect'} and not defined $opts{'rect'})
935 0 0 if defined $opts{'rect'}
939 0 0 if ($icon eq 'None') { }
0 0 elsif (ref $icon) { }