Branch Coverage

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


line true false branch
47 0 3 if (defined $opts{'-name'} and not defined $opts{'name'})
48 0 3 if (defined $opts{'-compress'} and not defined $opts{'compress'})
51 0 3 if (exists $opts{'name'})
56 0 3 if ref $class
59 0 3 unless $self->is_obj($pdf)
64 1 2 if (ref $file) { }
67 1 1 unless open $fh, "<", $file
73 1 1 if (ref $file) { }
103 0 10 if $ff != 255
104 0 10 if $mark == 218 or $mark == 217
105 0 10 if $len < 2
106 0 10 if $fh->eof
108 2 8 if $mark == 254
109 2 6 if $mark >= 224 and $mark <= 239
110 2 0 if ($mark >= 192 and $mark <= 207 and $mark != 196 and $mark != 200 and $mark != 204)
120 0 2 unless (defined $c)
121 2 0 if ($c == 3) { }
0 0 elsif ($c == 4) { }
0 0 elsif ($c == 1) { }