Branch Coverage

blib/lib/PDF/Builder/Resource/XObject/Image/JPEG.pm
Criterion Covered Total %
branch 22 38 57.8


line true false branch
43 0 3 if (defined $opts{'-name'} and not defined $opts{'name'})
44 0 3 if (defined $opts{'-compress'} and not defined $opts{'compress'})
47 0 3 if (exists $opts{'name'})
52 0 3 if ref $class
55 0 3 unless $self->is_obj($pdf)
60 1 2 if (ref $file) { }
63 1 1 unless open $fh, "<", $file
69 1 1 if (ref $file) { }
99 0 10 if $ff != 255
100 0 10 if $mark == 218 or $mark == 217
101 0 10 if $len < 2
102 0 10 if $fh->eof
104 2 8 if $mark == 254
105 2 6 if $mark >= 224 and $mark <= 239
106 2 0 if ($mark >= 192 and $mark <= 207 and $mark != 196 and $mark != 200 and $mark != 204)
116 0 2 unless (defined $c)
117 2 0 if ($c == 3) { }
0 0 elsif ($c == 4) { }
0 0 elsif ($c == 1) { }