Branch Coverage

lib/Weather/GHCN/CacheURI.pm
Criterion Covered Total %
branch 11 42 26.1


line true false branch
237 0 54 unless $_cachedir
240 0 54 if $_cachedir and not -d $_cachedir
243 0 54 unless ($_cachedir and -d $_cachedir)
248 0 54 if ($_refresh eq 'always') { }
54 0 elsif ($_refresh eq 'never') { }
0 0 elsif ($_refresh eq 'yearly') { }
258 0 0 unless $_refresh =~ / \A \d+ \Z /msux
278 54 1 if (defined $file and -f $file) { }
305 0 1 unless -d $_cachedir
309 0 1 unless defined $store_file
328 0 1 unless my $file = $self->_path_to_key($uri)
354 0 0 if ($st)
355 0 0 unless my($ctype, $doclen, $mtime, $exp, $svr) = &head($uri)
358 0 0 if ($mtime > $st->mtime) { }
361 0 0 if $content
372 0 0 if $content
387 0 0 if ($st and $st->mtime >= $cutoff_mtime)
394 0 0 unless my($ctype, $doclen, $mtime, $exp, $svr) = &head($uri)
399 0 0 if ($st and $st->mtime >= $mtime)
408 0 0 if $content
432 0 60 unless defined $uri