Branch Coverage

blib/lib/Fetch/Image.pm
Criterion Covered Total %
branch 18 20 90.0


line true false branch
27 1 1 unless (defined $$self{'config'}{'max_filesize'})
32 1 1 unless (defined $$self{'config'}{'allowed_types'})
52 0 8 if (not defined $url) { }
1 7 elsif (not defined is_web_uri($url)) { }
71 7 1 if (defined $$self{'config'}{'user_agent'})
75 0 8 if (defined $$self{'config'}{'timeout'})
91 3 4 if $head->is_error
93 2 2 unless exists $$self{'config'}{'allowed_types'}{$head->header('content-type')}
96 1 1 if ($head->header('content-length') and $head->header('content-length') > $$self{'config'}{'max_filesize'})
121 1 1 unless ($image_info)