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 9490 83 not $more and $char eq $start
676 9490 0 not $more and $char eq $relaxed || $char eq $wildcard
8008 0 786 $spec and ++$more
311 0 878 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 985 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 113 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 9444 $char eq $relaxed || $char eq $wildcard