Branch Coverage

blib/lib/App/PDF/Link/Icons.pm
Criterion Covered Total %
branch 15 30 50.0


line true false branch
31 1 1 if ($env->{'all'})
38 0 0 if ($env->{'icons'}{$_}) { }
45 1 1 if $env->{'all'}
48 19 0 if ($file =~ /^builtin:(.*)/) { }
52 0 19 unless $data
57 1 18 if ($type eq 'jpg') { }
0 18 elsif ($type eq 'jpeg') { }
1 17 elsif ($type eq 'biab') { }
72 0 0 unless -r $file
73 0 0 if ($file =~ /\.png$/i) { }
0 0 elsif ($file =~ /\.jpe?g$/i) { }
0 0 elsif ($file =~ /\.gif$/i) { }
94 0 2 unless %icons
96 1 1 if $icons{$ext}
97 1 0 if defined $icons{' fallback'}