Condition Coverage

blib/lib/Routes/Tiny/Pattern.pm
Criterion Covered Total %
condition 28 41 68.2


and 3 conditions

line !l l&&!r l&&r condition
61 126 0 11 not $self->{'strict_trailing_slash'} and $path ne '/'
126 6 5 not $self->{'strict_trailing_slash'} and $path ne '/' and not $path =~ m[/$]
137 32 17 0 $part->{'level'} and exists $params{$name}
143 1 0 9 $part->{'level'} and $part->{'level'} > $optional_depth
145 0 1 0 exists $self->{'defaults'} and exists $self->{'defaults'}{$name}
167 0 3 0 exists $self->{'defaults'} and exists $self->{'defaults'}{$name}
198 0 35 0 $self->{'routes'} && $self->{'routes'}{'parent_pattern'}
206 0 25 10 $path ne '/' and $trailing_slash
311 140 52 65 $part->[-1] and substr($pattern, pos $pattern, 1) eq '/'
339 0 23 42 $part and @$part

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
26 5 0 61 $params{'method'} || $params{'default_method'}
75 76 10 2 defined $value or not exists $captures->{$capture}
320 59 0 6 $self->{'strict_trailing_slash'} or $self->{'subroutes'}