Branch Coverage

blib/lib/Image/Delivery/Provider.pm
Criterion Covered Total %
branch 15 24 62.5


line true false branch
61 7 7 if $$self{'id'}
65 0 7 unless ref $image eq 'SCALAR'
76 6 9 if $$self{'content_type'}
80 0 9 unless my $image = $self->image
82 0 9 if $head =~ /^\xFF\xD8/
83 9 0 if $head =~ /^GIF8[79]a/
84 0 0 if $head =~ /^\x89PNG\x0d\x0a\x1a\x0a/
91 8 9 if $$self{'extension'}
94 0 9 unless my $content_type = $self->content_type
95 0 9 unless my $extension = {'image/jpeg', 'jpg', 'image/gif', 'gif', 'image/png', 'png'}->{$content_type}
106 13 8 if $$self{'TransformPath'}
109 0 8 unless my $id = $self->id