Branch Coverage

blib/lib/PDF/API2/NamedDestination.pm
Criterion Covered Total %
branch 11 40 27.5


line true false branch
34 1 0 if $pdf->isa("PDF::API2")
39 1 0 if (@_)
143 0 12 defined $_ ? :
148 4 3 unless $location
161 0 3 unless defined $arg_count
163 0 3 if ($arg_count == 0 and @args) { }
0 3 elsif ($arg_count == 1 and @args != 1) { }
0 3 elsif ($arg_count == 3 and @args != 3) { }
0 6 elsif ($arg_count == 4 and @args != 4) { }
176 0 3 if $location eq "xyz"
191 0 0 if (ref $page)
192 0 0 unless keys %opts
194 0 0 if (defined $opts{'-fit'}) { }
0 0 elsif (defined $opts{'-fith'}) { }
0 0 elsif (defined $opts{'-fitb'}) { }
0 0 elsif (defined $opts{'-fitbh'}) { }
0 0 elsif (defined $opts{'-fitv'}) { }
0 0 elsif (defined $opts{'-fitbv'}) { }
0 0 elsif (defined $opts{'-fitr'}) { }
0 0 elsif (defined $opts{'-xyz'}) { }