Branch Coverage

blib/lib/Mojolicious/Routes/Match.pm
Criterion Covered Total %
branch 32 34 94.1


line true false branch
17 9 148 unless $route = $self->endpoint
157 139 if ($current) { }
20 0 139 unless $route = $self->root->lookup($name)
28 31 6 $current ? :
37 223 if not exists $values{'format'} and $constraints->{'format'} and $constraints->{'format'} ne 1
40 14923 2629 unless my $captures = $r->pattern->match_partial(\$path, $detect)
47 171 2458 if $methods and not grep({$_ eq $options->{'method'};} @$methods)
50 141 2317 if (my $over = $r->requires)
53 0 143 unless my $condition = $$conditions{$over->[$i]}
54 106 37 unless &$condition($r, $c, $captures, $$over[$i + 1])
59 5 2347 if $r->is_websocket and not $options->{'websocket'}
63 72 2275 if ($partial)
70 942 1405 if ($endpoint and $empty or $r->inline)
72 716 226 if ($endpoint and $empty)
74 66 650 if ($format)
81 853 778 $r->parent ? :
83 819 15901 if $self->_match($child, $c, $options)