Condition Coverage

blib/lib/Mojolicious/Routes/Route.pm
Criterion Covered Total %
condition 34 37 91.8


and 3 conditions

line !l l&&!r l&&r condition
126 34 6 8 $via{'POST'} and not $via{'GET'}
179 493 50 16 not ref $arg and @args

or 2 conditions

line l !l condition
80 895 97 $self->pattern->parse(@_)->unparsed // ""
99 276 14 $path || '/'
122 31 67 $route->methods // []
127 6 19 (sort keys %via)[0] || 'GET'
155 7 5 $_->pattern->unparsed // ""

or 3 conditions

line l !l&&r !l&&!r condition
98 365 12 290 @{$_->children;} || $_->partial
140 3 2 374 ref $shortcut or $shortcut =~ /^[\w:]+$/u
179 493 66 940 ref $arg || $pattern
209 10 79 0 $custom{$child->name} ||= $child
210 172 1032 0 $auto{$child->name} ||= $child
227 4 4 3 $new_pattern->constraints->{'format'} //= $constraints->{'format'}
229 0 2 3 $new_pattern->defaults->{'format'} //= $defaults->{'format'}