blib/lib/Spike/Site/Router.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 0 | 38 | 0.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
116 | 0 | 0 | 0 | -f $full_path and open my $fh, '<', $full_path |
176 | 0 | 0 | 0 | $self->debug && $self->_try_static($req, $res, $path) |
line | l | !l | condition |
---|---|---|---|
128 | 0 | 0 | ($file =~ m[(\.[^/.]+)?$])[0] || '.html' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
24 | 0 | 0 | 0 | (shift())->{'route'} ||= 'Spike::Site::Router::Route'->new |
28 | 0 | 0 | 0 | $self->{'config'} ||= 'Spike::Config'->new |
36 | 0 | 0 | 0 | ref $proto || $proto |
50 | 0 | 0 | 0 | $self->{'cache'} ||= 'Spike::Cache'->new('name', 'Route cache', 'debug', $self->debug, 'max_records', $config->max_records('int', 10240), 'max_ttl', $config->max_ttl('int', 3600), 'max_idle_time', $config->max_idle_time('int', 300), 'purge_time', $config->purge_time('int', 300)) |
96 | 0 | 0 | 0 | $route->prepare || $prepare |
97 | 0 | 0 | 0 | $route->finalize || $finalize |
127 | 0 | 0 | 0 | not $req_mtime or $req_mtime < $mtime |
153 | 0 | 0 | 0 | $errors->{$class} || $is_http && $$errors{$error->value} |
184 | 0 | 0 | 0 | $found || $last_found |
200 | 0 | 0 | 0 | $route->method($req->method) || $route->method |