Branch Coverage

blib/lib/App/PDF/Link/Icons.pm
Criterion Covered Total %
branch 16 30 53.3


line true false branch
32 1 1 if ($env->{'all'})
45 0 0 if ($env->{'icons'}{$_}) { }
52 1 1 if $env->{'all'}
61 32 12 if exists $icons{$ext}
64 0 12 unless %idef
67 11 1 if ($file)
68 11 0 if ($file =~ /^builtin:(.*)/) { }
72 0 11 unless $data
78 0 0 unless -r $file
79 0 0 if ($file =~ /\.png$/i) { }
0 0 elsif ($file =~ /\.jpe?g$/i) { }
0 0 elsif ($file =~ /\.gif$/i) { }
93 35 182 if $idef{$_} eq $file
96 11 1 if $icons{$ext}
97 1 0 if defined $icons{' fallback'}