Branch Coverage

blib/lib/PDF/API2/Resource/XObject/Image/JPEG.pm
Criterion Covered Total %
branch 18 30 60.0


line true false branch
19 0 4 if ref $class
22 0 4 unless $self->is_obj($pdf)
27 1 3 if (ref $file) { }
31 1 2 unless open $fh, "<", $file
37 1 2 if (ref $file) { }
67 0 15 if $ff != 255
68 0 15 if $mark == 218 or $mark == 217
69 0 15 if $len < 2
70 0 15 if $fh->eof
72 3 12 if $mark == 254
73 3 9 if $mark >= 224 and $mark <= 239
74 3 0 if ($mark >= 192 and $mark <= 207 and $mark != 196 and $mark != 200 and $mark != 204)
84 3 0 if (defined $c and $c == 3) { }
0 0 elsif (defined $c and $c == 4) { }
0 0 elsif (defined $c and $c == 1) { }