Condition Coverage

blib/lib/Plack/App/URLMux.pm
Criterion Covered Total %
condition 18 25 72.0


and 3 conditions

line !l l&&!r l&&r condition
53 1 0 0 exists $self->{'_mapping_not_found'} and defined $self->{'_mapping_not_found'}
156 0 0 59 $http_host and $env->{'SERVER_PORT'}

or 2 conditions

line l !l condition
71 16 12 $self->{'_mapping'}{$host} ||= [{}, $index, [1, 0]]
113 6 9 $map->[4] ||= {}
114 3 12 $map->[4]{"$n.$m"} ||= [{}, $index, [$n, $m]]
125 2 13 $map->[0]{$path} ||= [{}, $index, [1, 1]]
210 29 29 $params || []

or 3 conditions

line l !l&&r !l&&!r condition
101 6 3 6 $2 || $5
0 0 15 $3 || $7
168 0 50 1 $mapping->{$http_host} || $mapping->{$server_name} || $mapping->{'*'}