Condition Coverage

blib/lib/Routes/Tiny/Pattern.pm
Criterion Covered Total %
condition 32 41 78.0


and 3 conditions

line !l l&&!r l&&r condition
63 142 0 11 not $self->{'strict_trailing_slash'} and $path ne '/'
142 6 5 not $self->{'strict_trailing_slash'} and $path ne '/' and not $path =~ m[/$]
139 32 9 8 $part->{'level'} and exists $params{$name}
145 1 0 9 $part->{'level'} and $part->{'level'} > $optional_depth
147 0 0 1 exists $self->{'defaults'} and exists $self->{'defaults'}{$name}
169 0 2 1 exists $self->{'defaults'} and exists $self->{'defaults'}{$name}
200 0 32 3 $self->{'routes'} && $self->{'routes'}{'parent_pattern'}
208 0 25 10 $path ne '/' and $trailing_slash
313 150 53 70 $part->[-1] and substr($pattern, pos $pattern, 1) eq '/'
348 0 27 43 $part and @$part

or 2 conditions

line l !l condition
28 4 67 $params{'constraints'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
26 6 1 64 $params{'method'} || $params{'default_method'}
77 77 10 2 defined $value or not exists $captures->{$capture}
322 64 0 6 $self->{'strict_trailing_slash'} or $self->{'subroutes'}