Condition Coverage

blib/lib/Mojolicious/Routes/Pattern.pm
Criterion Covered Total %
condition 35 39 89.7


and 3 conditions

line !l l&&!r l&&r condition
83 405 266 49 $endpoint && $format
168 676 9464 83 not $more and $char eq $start
676 9464 0 not $more and $char eq $relaxed || $char eq $wildcard
7985 0 786 $spec and ++$more
311 0 875 not $tree[-2] and $tree[-1][0] eq "slash"
0 28 283 $tree[-2] and $tree[-2][0] eq "text"
28 2 281 $tree[-2] and $tree[-2][0] eq "text" and $tree[-1][0] eq "slash"

or 2 conditions

line l !l condition
45 982 51 shift() // "/"
74 189 1 ($values->{$name} // $default) // ""
111 6 1 $$types{$value->[1]} // "?!"

or 3 conditions

line l !l&&r !l&&!r condition
18 54 105 15 !$path || $path eq '/'
74 177 11 2 $values->{$name} // $default
75 117 37 36 not defined $default or $default ne $part
168 6 40 9418 $char eq $relaxed || $char eq $wildcard