Condition Coverage

blib/lib/PlackX/Framework/Router/Engine.pm
Criterion Covered Total %
condition 40 52 76.9


and 3 conditions

line !l l&&!r l&&r condition
13 0 0 86 $request and ref $request
0 0 86 $request and ref $request and $request->can("destination")
53 16 7 1 ref $pattern eq "SCALAR" and $request->destination eq $$pattern
15 7 1 ref $pattern eq "Regexp" and $request->destination =~ /$pattern/u
14 6 2 not ref $pattern and substr($request->destination, 0, length $pattern) eq $pattern
68 0 0 11 ref $self->{'leaves'} eq "ARRAY" and @{$self->{'leaves'}} > 0
92 0 32 9 $key && uc $key ne 'ANY'
113 34 0 10 $base and length $base

or 2 conditions

line l !l condition
32 13 19 $match{$filter_type} ||= []
107 5 3 $self->{$hkey} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
9 69 9 0 $instances{$class} ||= $class->SUPER::new
43 62 62 0 $kind eq "prefilters" or $kind eq "postfilters"
53 48 1 23 not defined $pattern or ref $pattern eq "SCALAR" and $request->destination eq $$pattern
1 1 22 not defined $pattern or ref $pattern eq "SCALAR" and $request->destination eq $$pattern or ref $pattern eq "Regexp" and $request->destination =~ /$pattern/u
1 6 16 not defined $pattern or ref $pattern eq "SCALAR" and $request->destination eq $$pattern or ref $pattern eq "Regexp" and $request->destination =~ /$pattern/u or not ref $pattern and substr($request->destination, 0, length $pattern) eq $pattern
85 8 2 30 ref $route eq "HASH" or ref $route eq "ARRAY"
10 30 0 ref $route eq "HASH" or ref $route eq "ARRAY" or not ref $route
103 5 3 0 $when eq "before" or $when eq "after"