Branch Coverage

lib/Image/Info/PNG.pm
Criterion Covered Total %
branch 49 62 79.0


line true false branch
44 0 90 unless defined $n
45 0 90 unless $n == $len
55 0 8 unless $signature eq "\211PNG\r\n\32\n"
66 37 8 if (@chunks) { }
69 2 35 if $last =~ s/\s(\d+)$//
70 2 35 if ($last eq $type) { }
82 8 37 if $type eq "IEND"
85 8 29 if ($type eq 'IHDR' and $len == 13) { }
3 26 elsif ($type eq 'PLTE') { }
0 26 elsif ($type eq 'gAMA' and $len == 4) { }
5 21 elsif ($type eq 'pHYs' and $len == 9) { }
7 14 elsif ($type eq 'tEXt' or $type eq 'zTXt' or $type eq 'iTXt') { }
4 10 elsif ($type eq 'tIME' and $len == 7) { }
0 10 elsif ($type eq 'sBIT') { }
8 2 elsif ($type eq 'IDAT') { }
96 8 0 if $compression == 0
97 8 0 if $filter == 0
98 1 7 if $interlace == 1
107 1 7 if $interlace
131 5 0 $res_x == $res_y ? :
132 5 0 if ($unit)
133 5 0 if ($unit == 1) { }
145 3 4 if ($type eq 'iTXt') { }
3 1 elsif ($type eq 'zTXt') { }
149 1 2 unless ($compressed)
158 5 2 if (defined $method)
159 5 0 if ($have_zlib and $method eq "\000") { }
166 3 4 if ($is_i)
167 3 0 if ($have_encode) { }
174 7 0 if (defined $val) { }
200 3 5 unless ($info->get_info(0, "resolution"))