Branch Coverage

blib/lib/PDF/API2/Annotation.pm
Criterion Covered Total %
branch 12 58 20.6


line true false branch
74 0 1 if ($_[0] and $_[0] =~ /^-/) { }
83 0 1 unless (ref $destination)
91 0 1 if (%options) { }
97 0 0 if defined $options{'-rect'}
98 0 0 if defined $options{'-border'}
129 0 1 if defined $options{'-rect'}
130 0 1 if defined $options{'-border'}
153 0 1 if defined $options{'-rect'}
154 0 1 if defined $options{'-border'}
182 0 1 if ($_[0] and $_[0] =~ /^-/) { }
195 0 1 if (%options) { }
202 0 0 if defined $options{'-rect'}
203 0 0 if defined $options{'-border'}
223 2 0 if defined $options{'-rect'}
224 0 2 if defined $options{'-open'}
251 0 0 if defined $options{'-rect'}
268 0 2 unless (scalar @coordinates == 4)
285 0 0 unless (scalar @attributes == 3)
324 0 0 $value ? :
331 0 0 unless (ref $page)
337 0 0 unless keys %options
339 0 0 if (defined $options{'-fit'}) { }
0 0 elsif (defined $options{'-fith'}) { }
0 0 elsif (defined $options{'-fitb'}) { }
0 0 elsif (defined $options{'-fitbh'}) { }
0 0 elsif (defined $options{'-fitv'}) { }
0 0 elsif (defined $options{'-fitbv'}) { }
0 0 elsif (defined $options{'-fitr'}) { }
0 0 elsif (defined $options{'-xyz'}) { }