Branch Coverage

blib/lib/PDF/Builder/Resource/XObject/Image/JPEG.pm
Criterion Covered Total %
branch 17 32 53.1


line true false branch
27 0 2 if ref $class
30 0 2 unless $self->is_obj($pdf)
35 0 2 if (ref $file) { }
38 1 1 unless open $fh, '<', $file
44 0 1 if (ref $file) { }
74 0 5 if $ff != 255
75 0 5 if $mark == 218 or $mark == 217
76 0 5 if $len < 2
77 0 5 if $fh->eof
79 1 4 if $mark == 254
80 1 3 if $mark >= 224 and $mark <= 239
81 1 0 if ($mark >= 192 and $mark <= 207 and $mark != 196 and $mark != 200 and $mark != 204)
91 0 1 unless (defined $c)
92 1 0 if ($c == 3) { }
0 0 elsif ($c == 4) { }
0 0 elsif ($c == 1) { }