blib/lib/Mojolicious/Routes/Match.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 37 | 40 | 92.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
28 | 27 | 212 | 48 | not exists $values{'format'} and $constraints->{'format'} |
212 | 11 | 37 | not exists $values{'format'} and $constraints->{'format'} and $constraints->{'format'} ne 1 | |
39 | 2467 | 591 | 14577 | (my $endpoint = $r->is_endpoint) && !$partial |
47 | 1783 | 635 | 173 | $methods and not grep({$_ eq $options->{'method'};} @$methods) |
59 | 2267 | 40 | 5 | $r->is_websocket and not $options->{'websocket'} |
70 | 1174 | 434 | 699 | $endpoint and $empty |
72 | 226 | 0 | 699 | $endpoint and $empty |
line | l | !l | condition |
---|---|---|---|
23 | 279 | 8 | $self->stack->[-1] // {} |
42 | 1783 | 808 | $self->{'captures'} //= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
16 | 155 | 2 | 139 | !$name || $name eq 'current' |
28 | 24 | 0 | 13 | ($current ? $captures->{'format'} : undef) // $pattern->defaults->{'format'} |
51 | 72 | 69 | 0 | $self->{'conditions'} ||= $self->root->conditions |
62 | 600 | 130 | 1577 | !length($path) || $path eq '/' |
70 | 699 | 226 | 1382 | $endpoint and $empty or $r->inline |