Branch Coverage

blib/lib/PDF/Builder/ViewerPreferences.pm
Criterion Covered Total %
branch 0 86 0.0


line true false branch
73 0 0 unless $prefs
78 0 0 unless $prefs->{$pref}
79 0 0 $prefs->{$pref}->val eq 'true' ? :
82 0 0 unless $prefs->{$pref}
83 0 0 if ($pref eq 'Direction') { }
0 0 elsif ($pref eq 'Duplex') { }
0 0 elsif ($pref eq 'NonFullScreenPageMode') { }
93 0 0 if $value eq "oc"
99 0 0 if ($prefs->{'PrintPageRange'})
103 0 0 if ($prefs->{'NumCopies'})
132 0 0 if ($self->{'pdf'}{'catalog'}{'ViewerPreferences'}) { }
148 0 0 if ($camel eq 'NonFullScreenPageMode') { }
0 0 elsif ($camel eq 'Direction') { }
0 0 elsif ($camel =~ /^(?:View|Print)(?:Area|Clip)$/) { }
0 0 elsif ($camel eq 'PrintScaling') { }
0 0 elsif ($camel eq 'Duplex') { }
0 0 elsif ($camel eq 'PrintPageRange') { }
0 0 elsif ($camel eq 'NumCopies') { }
0 0 elsif (grep {$camel eq $_;} @booleans) { }
150 0 0 $value eq 'optional_content' ? :
0 0 $value eq 'thumbnails' ? :
0 0 $value eq 'outlines' ? :
0 0 $value eq 'none' ? :
155 0 0 unless $name
160 0 0 unless ($name =~ /^(?:L2R|R2L)$/i)
170 0 0 $values{$snake} eq 'art_box' ? :
0 0 $values{$snake} eq 'trim_box' ? :
0 0 $values{$snake} eq 'bleed_box' ? :
0 0 $values{$snake} eq 'crop_box' ? :
0 0 $values{$snake} eq 'media_box' ? :
171 0 0 unless $name
176 0 0 $value eq 'app_default' ? :
0 0 $value eq 'none' ? :
178 0 0 unless $name
183 0 0 $value eq 'duplex_long' ? :
0 0 $value eq 'duplex_short' ? :
0 0 $value eq 'simplex' ? :
186 0 0 unless $name
190 0 0 unless (ref $values{$snake} eq "ARRAY")
194 0 0 unless (@range % 2 == 0)
197 0 0 if (join("", @range) =~ /\D/)
203 0 0 unless ($values{$snake} =~ /^\d+$/)
209 0 0 $values{$snake} ? :