Condition Coverage

blib/lib/Mojolicious/Routes/Match.pm
Criterion Covered Total %
condition 37 40 92.5


and 3 conditions

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 2474 591 14606 (my $endpoint = $r->is_endpoint) && !$partial
47 1790 638 173 $methods and not grep({$_ eq $options->{'method'};} @$methods)
59 2277 40 5 $r->is_websocket and not $options->{'websocket'}
70 1181 434 702 $endpoint and $empty
72 226 0 702 $endpoint and $empty

or 2 conditions

line l !l condition
23 279 8 $self->stack->[-1] // {}
42 1786 815 $self->{'captures'} //= {}

or 3 conditions

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 603 130 1584 !length($path) || $path eq '/'
70 702 226 1389 $endpoint and $empty or $r->inline