blib/lib/MooX/Role/CachedURL.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 12 | 18 | 66.6 |
line | true | false | branch |
---|---|---|---|
20 | 2 | 3 | if ($self->path) |
21 | 2 | 0 | if -f $self->path |
26 | 0 | 3 | unless ($self->cache_path) |
36 | 1 | 2 | if (-f $self->cache_path and defined $self->max_age) |
38 | 0 | 1 | unless time - $max_age_in_seconds > (stat $self->cache_path)[9] |
43 | 0 | 3 | if (not $response->{'success'}) |
54 | 2 | 0 | defined $self->path ? : |
58 | 1 | 1 | if ($filename =~ /\.gz\z/) |
63 | 0 | 2 | unless open my $fh, '<' . $layers, $filename |