| blib/lib/Mojolicious/Routes/Route.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 33 | 37 | 89.1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 127 | 34 | 6 | 8 | $via{'POST'} and not $via{'GET'} |
| 180 | 508 | 50 | 16 | not ref $arg and @args |
| line | l | !l | condition |
|---|---|---|---|
| 80 | 912 | 97 | $self->pattern->parse(@_)->unparsed // "" |
| 100 | 276 | 14 | $path || '/' |
| 123 | 31 | 67 | $route->methods // [] |
| 128 | 6 | 19 | (sort keys %via)[0] || 'GET' |
| 156 | 7 | 5 | $_->pattern->unparsed // "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 99 | 365 | 12 | 290 | @{$_->children;} || $_->partial |
| 141 | 3 | 2 | 374 | ref $shortcut or $shortcut =~ /^[\w:]+$/u |
| 180 | 508 | 66 | 957 | ref $arg || $pattern |
| 210 | 10 | 79 | 0 | $custom{$child->name} ||= $child |
| 211 | 172 | 1033 | 0 | $auto{$child->name} ||= $child |
| 228 | 4 | 7 | 0 | $new_pattern->constraints->{'format'} //= $constraints->{'format'} |
| 230 | 0 | 2 | 3 | $new_pattern->defaults->{'format'} //= $defaults->{'format'} |