Branch Coverage

lib/Image/Magick/Thumbnail/PDF.pm
Criterion Covered Total %
branch 19 68 27.9


line true false branch
23 2 0 if DEBUG()
26 0 2 unless $abs_pdf
33 2 0 if DEBUG()
35 0 2 if (ref $val eq 'HASH') { }
1 1 elsif ($val =~ /^\d+$/) { }
1 0 elsif ($val eq 'all_pages') { }
0 0 elsif ($val =~ m[[^/]+\.\w{2,4}$]) { }
36 0 0 if DEBUG()
39 1 0 if DEBUG()
42 1 0 if DEBUG()
45 0 0 if DEBUG()
53 2 0 if DEBUG()
2 0 unless (defined $$arg{'frame'})
54 2 0 if DEBUG()
2 0 unless (defined $$arg{'normalize'})
58 2 0 if ($$arg{'frame'})
65 2 0 unless ($name_of_outfile_in_arguments)
68 2 0 if DEBUG()
72 0 2 unless $$arg{'frame'} =~ /^\d+$/
74 0 2 unless $$arg{'restriction'} =~ /^\d+$/
77 2 0 if (DEBUG())
97 0 0 if DEBUG()
100 0 0 if (not $all) { }
103 0 0 unless defined $image
108 0 0 if DEBUG()
124 0 0 if DEBUG()
126 0 0 unless ($name_of_outfile_in_arguments)
130 0 0 if ($$arg{'normalize'})
135 0 0 if DEBUG()
138 0 0 if ($$arg{'quality'})
139 0 0 if DEBUG()
146 0 0 if ($$arg{'frame'})
148 0 0 if DEBUG()
153 0 0 if DEBUG()