Branch Coverage

blib/lib/PDF/API2/Resource/XObject/Image/TIFF/File.pm
Criterion Covered Total %
branch 69 104 66.3


line true false branch
15 1 3 if (ref $file) { }
21 1 2 unless open $self->{'fh'}, "<", $file
32 0 3 $self->{'byteOrder'} eq 'MM' ? :
33 0 3 $self->{'byteOrder'} eq 'MM' ? :
34 0 3 $self->{'byteOrder'} eq 'MM' ? :
39 0 3 if $self->{'version'} != 42
60 6 2 $type == 5 ? :
12 8 $type == 4 ? :
29 20 $type == 3 ? :
6 49 $type == 2 ? :
6 55 $type == 1 ? :
69 22 39 if ($len > 4) { }
76 12 0 $type == 4 ? :
27 12 $type == 3 ? :
0 39 $type == 2 ? :
0 39 $type == 1 ? :
101 0 61 if ($valTag == 0) { }
3 58 elsif ($valTag == 256) { }
3 55 elsif ($valTag == 257) { }
3 52 elsif ($valTag == 258) { }
3 49 elsif ($valTag == 259) { }
3 46 elsif ($valTag == 262) { }
0 46 elsif ($valTag == 266) { }
0 46 elsif ($valTag == 270) { }
3 43 elsif ($valTag == 282) { }
3 40 elsif ($valTag == 283) { }
3 37 elsif ($valTag == 296) { }
3 34 elsif ($valTag == 273) { }
3 31 elsif ($valTag == 277) { }
3 28 elsif ($valTag == 278) { }
3 25 elsif ($valTag == 279) { }
0 25 elsif ($valTag == 292) { }
0 25 elsif ($valTag == 293) { }
0 25 elsif ($valTag == 320) { }
0 25 elsif ($valTag == 317) { }
0 25 elsif ($valTag == 32781) { }
111 2 1 if ($valCount > 1) { }
126 2 1 if ($valOffset == 1) { }
0 1 elsif ($valOffset == 3 or $valOffset == 4) { }
1 0 elsif ($valOffset == 5) { }
0 0 elsif ($valOffset == 6 or $valOffset == 7) { }
0 0 elsif ($valOffset == 8 or $valOffset == 32946) { }
0 0 elsif ($valOffset == 32773) { }
152 1 2 if ($valOffset == 0) { }
0 2 elsif ($valOffset == 1) { }
2 0 elsif ($valOffset == 2) { }
0 0 elsif ($valOffset == 3) { }
0 0 elsif ($valOffset == 5) { }
0 0 elsif ($valOffset == 6) { }
0 0 elsif ($valOffset == 8) { }
216 3 0 if ($valCount == 1) { }
236 3 0 if ($valCount == 1) { }