Branch Coverage

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


line true false branch
108 0 1 if (defined $opts{'-rect'} and not defined $opts{'rect'})
109 0 1 if (defined $opts{'-border'} and not defined $opts{'border'})
110 0 1 if (defined $opts{'-color'} and not defined $opts{'color'})
113 1 0 if (ref $page)
118 0 1 if defined $opts{'rect'}
119 0 1 if defined $opts{'border'}
120 0 1 if defined $opts{'color'}
149 0 1 if (defined $opts{'-rect'} and not defined $opts{'rect'})
150 0 1 if (defined $opts{'-color'} and not defined $opts{'color'})
151 0 1 if (defined $opts{'-border'} and not defined $opts{'border'})
160 0 1 if defined $opts{'rect'}
161 0 1 if defined $opts{'color'}
162 0 1 if defined $opts{'border'}
187 0 1 if (defined $opts{'-rect'} and not defined $opts{'rect'})
188 0 1 if (defined $opts{'-color'} and not defined $opts{'color'})
189 0 1 if (defined $opts{'-border'} and not defined $opts{'border'})
195 0 1 if defined $opts{'rect'}
196 0 1 if defined $opts{'color'}
197 0 1 if defined $opts{'border'}
221 0 1 if (defined $opts{'-rect'} and not defined $opts{'rect'})
222 0 1 if (defined $opts{'-color'} and not defined $opts{'color'})
223 0 1 if (defined $opts{'-border'} and not defined $opts{'border'})
229 0 1 if defined $opts{'rect'}
230 0 1 if defined $opts{'color'}
231 0 1 if defined $opts{'border'}
284 0 2 if (defined $opts{'-rect'} and not defined $opts{'rect'})
285 0 2 if (defined $opts{'-color'} and not defined $opts{'color'})
286 0 2 if (defined $opts{'-border'} and not defined $opts{'border'})
287 0 2 if (defined $opts{'-open'} and not defined $opts{'open'})
288 0 2 if (defined $opts{'-text'} and not defined $opts{'text'})
289 0 2 if (defined $opts{'-opacity'} and not defined $opts{'opacity'})
290 0 2 if (defined $opts{'-icon'} and not defined $opts{'icon'})
295 2 0 if defined $opts{'rect'}
296 0 2 if defined $opts{'color'}
298 0 2 if defined $opts{'open'}
301 0 2 if exists $opts{'text'}
303 0 2 if (defined $opts{'opacity'})
309 0 2 if exists $opts{'icon'}
310 0 2 if $icon and not ref $icon
312 0 2 if $icon
391 0 0 if (defined $opts{'-color'} and not defined $opts{'color'})
392 0 0 if (defined $opts{'-open'} and not defined $opts{'open'})
393 0 0 if (defined $opts{'-text'} and not defined $opts{'text'})
394 0 0 if (defined $opts{'-opacity'} and not defined $opts{'opacity'})
397 0 0 if (scalar @pointList == 0 or scalar(@pointList) % 8)
411 0 0 if defined $opts{'open'}
412 0 0 if (defined $opts{'color'}) { }
419 0 0 if exists $opts{'text'}
421 0 0 if (defined $opts{'opacity'})
445 0 0 if (defined $opts{'-rect'} and not defined $opts{'rect'})
446 0 0 if (defined $opts{'-color'} and not defined $opts{'color'})
447 0 0 if (defined $opts{'-border'} and not defined $opts{'border'})
448 0 0 if (defined $opts{'-text'} and not defined $opts{'text'})
465 0 0 if defined $opts{'rect'}
466 0 0 if defined $opts{'border'}
467 0 0 if defined $opts{'color'}
470 0 0 if exists $opts{'text'}
552 0 0 if (defined $opts{'-rect'} and not defined $opts{'rect'})
553 0 0 if (defined $opts{'-color'} and not defined $opts{'color'})
555 0 0 if (defined $opts{'-text'} and not defined $opts{'text'})
556 0 0 if (defined $opts{'-opacity'} and not defined $opts{'opacity'})
557 0 0 if (defined $opts{'-icon'} and not defined $opts{'icon'})
558 0 0 if (defined $opts{'-notrimpath'} and not defined $opts{'notrimpath'})
561 0 0 if exists $opts{'icon'}
563 0 0 if defined $opts{'rect'}
565 0 0 if exists $opts{'text'}
567 0 0 if (defined $opts{'opacity'})
598 0 0 unless (defined $opts{'notrimpath'})
599 0 0 if ($cName =~ m(([^/\\]+)$))
604 0 0 if $icon and not ref $icon
606 0 0 if defined $opts{'color'}
619 0 0 if $icon
668 0 2 unless scalar @r == 4
719 0 0 if (scalar @b == 3) { }
0 0 elsif (scalar @b == 4) { }
775 0 0 $bool ? :
799 0 2 if (defined $position{'-fit'} and not defined $position{'fit'})
800 0 2 if (defined $position{'-fith'} and not defined $position{'fith'})
801 0 2 if (defined $position{'-fitb'} and not defined $position{'fitb'})
802 0 2 if (defined $position{'-fitbh'} and not defined $position{'fitbh'})
803 0 2 if (defined $position{'-fitv'} and not defined $position{'fitv'})
804 0 2 if (defined $position{'-fitbv'} and not defined $position{'fitbv'})
805 0 2 if (defined $position{'-fitr'} and not defined $position{'fitr'})
806 0 2 if (defined $position{'-xyz'} and not defined $position{'xyz'})
808 2 0 if (ref $page) { }
811 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'}) { }
824 0 0 unless scalar @{$position{'fitr'};} == 4
827 0 0 unless scalar @{$position{'xyz'};} == 3
828 0 0 defined $_ ? :
832 0 6 defined $_ ? :
889 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) { }
925 0 0 if (defined $opts{'-rect'} and not defined $opts{'rect'})
931 0 0 if defined $opts{'rect'}
935 0 0 if ($icon eq 'None') { }
0 0 elsif (ref $icon) { }