Branch Coverage

blib/lib/EBook/Ishmael/ImageID.pm
Criterion Covered Total %
branch 12 24 50.0


line true false branch
155 54 41 if ($img =~ /^\xff\xd8\xff/u) { }
31 10 elsif ($img =~ /^\x89\x50\x4e\x47\x0d\x0a\x1a\x0a/u) { }
0 10 elsif ($img =~ /^GIF8[79]a/u) { }
0 10 elsif ($img =~ /^\x52\x49\x46\x46....\x57\x45\x42\x50\x56\x50\x38/u) { }
0 10 elsif ($img =~ /^BM/u) { }
0 10 elsif ($img =~ /^(\x49\x49\x2a\x00|\x4d\x4d\x00\x2a)/u) { }
0 10 elsif ($img =~ /\A....ftypavif/su) { }
0 10 elsif ($img =~ /^(\xff\x0a|\x00{3}\x0c\x4a\x58\x4c\x20\x0d\x0a\x87\x0a)/u) { }
0 10 elsif (substr($img, 0, 1024) =~ /<\s*svg[^<>]*>/u) { }
184 0 0 unless (defined $fmt)
188 0 0 unless (exists $SIZE{$fmt})
216 0 291 unless $path =~ /\.([^.]+)$/u