Branch Coverage

blib/lib/WebService/Bluga/Webthumb.pm
Criterion Covered Total %
branch 0 32 0.0


line true false branch
131 0 0 if (@_ % 2 != 0)
138 0 0 unless ($params{'user'} and $params{'api_key'})
142 0 0 if (exists $params{'size'} and not grep({$params{'size'} eq $_;} 'small', 'medium', 'medium2', 'large')) { }
0 0 elsif (not exists $params{'size'}) { }
150 0 0 unless (exists $params{'cache'})
154 0 0 if (exists $params{'cache_dir'} and not exists $params{'cache_url_stub'})
191 0 0 if (my $url = $self->_get_cached_url($url, $params))
211 0 0 if ($params->{'cache_dir'})
213 0 0 if ($req->is_success) { }
215 0 0 if defined $url
249 0 0 unless my $dir = Path::Class::dir($params->{'cache_dir'})
252 0 0 unless my $file = $dir->file(Digest::MD5::md5_hex($url . $params->{'size'}))
253 0 0 unless my $stat = $file->stat
254 0 0 if ($stat->mtime < time - $params->{'cache'} * 24 * 60 * 60) { }
266 0 0 unless my $dir = Path::Class::dir($params->{'cache_dir'})
269 0 0 unless my $file = $dir->file(Digest::MD5::md5_hex($url . $params->{'size'}))