Condition Coverage

blib/lib/Kelp/Routes.pm
Criterion Covered Total %
condition 34 36 94.4


and 3 conditions

line !l l&&!r l&&r condition
71 1 69 2 defined $val->{'to'} && $val->{'to'} =~ s/^(\+)//
75 1 20 51 defined $val->{'to'} and $val->{'to'} =~ /^(.+)::(\w+)$/
21 11 40 defined $val->{'to'} and $val->{'to'} =~ /^(.+)::(\w+)$/ and $1 ne "main"
31 31 9 defined $val->{'to'} and $val->{'to'} =~ /^(.+)::(\w+)$/ and $1 ne "main" and not "Class::Inspector"->loaded($1)
94 183 1 2 ref $key and ref $key ne "Regexp"
115 4 1 7 $val->{'name'} and $parent->{'name'}
178 22 168 2 ref $to and ref $to ne "CODE"

or 2 conditions

line l !l condition
111 7 177 $tree //= []
140 14 0 shift() // die("Route name is missing")
154 210 28 $method // ""

or 3 conditions

line l !l&&r !l&&!r condition
53 42 106 42 not ref $val or ref $val eq "CODE"
155 50 188 0 $self->cache->get($key) // $self->routes
178 1 3 189 not $to or ref $to and ref $to ne "CODE"