Branch Coverage

blib/lib/EBook/Ishmael/ImageID.pm
Criterion Covered Total %
branch 11 22 50.0


line true false branch
125 60 72 if ($$ref =~ /^\xff\xd8\xff/u) { }
62 10 elsif ($$ref =~ /^\x89\x50\x4e\x47\x0d\x0a\x1a\x0a/u) { }
0 10 elsif ($$ref =~ /^GIF8[79]a/u) { }
0 10 elsif ($$ref =~ /^\x52\x49\x46\x46....\x57\x45\x42\x50\x56\x50\x38/u) { }
0 10 elsif ($$ref =~ /^BM/u) { }
0 10 elsif ($$ref =~ /^(\x49\x49\x2a\x00|\x4d\x4d\x00\x2a)/u) { }
0 10 elsif ($$ref =~ /\A....ftypavif/su) { }
0 10 elsif ($$ref =~ /^(\xff\x0a|\x00{3}\x0c\x4a\x58\x4c\x20\x0d\x0a\x87\x0a)/u) { }
0 10 elsif (substr($$ref, 0, 1024) =~ /<\s*svg[^<>]*>/u) { }
154 0 0 unless (defined $fmt)
158 0 0 unless (exists $SIZE{$fmt})