| blib/lib/Path/Router.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 22 | 23 | 95.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 213 | 4 | 73 | 181 | @keys >= keys %required and @keys <= keys(%required) + keys(%optional) + keys(%match) |
| 245 | 61 | 17 | 0 | $route->is_component_optional($component) and $route->defaults->{$name} |
| 1 | 11 | 5 | $route->is_component_optional($component) and $route->defaults->{$name} and $route->defaults->{$name} eq $url_map{$name} |
| line | l | !l | condition |
|---|---|---|---|
| 94 | 2 | 1 | delete $options{'at'} || 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 115 | 1 | 1 | 3 | $path eq '' or $path =~ m[/$] |
| 154 | 6 | 2 | 4 | not defined $min or $vars < $min |
| 223 | 24 | 169 | 10 | $required{$_} || $optional{$_} || $match{$_} |
| 307 | 3 | 1 | 2 | not defined $min or $extra < $min |