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 2489 591 14472 (my $endpoint = $r->is_endpoint) && !$partial
47 1809 649 171 $methods and not grep({$_ eq $options->{'method'};} @$methods)
59 2306 41 5 $r->is_websocket and not $options->{'websocket'}
70 1196 435 716 $endpoint and $empty
72 226 0 716 $endpoint and $empty

or 2 conditions

line l !l condition
23 279 8 $self->stack->[-1] // {}
42 1799 830 $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 616 132 1599 !length($path) || $path eq '/'
70 716 226 1405 $endpoint and $empty or $r->inline