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
49 1 0 0 exists $self->{'_mapping_not_found'} and defined $self->{'_mapping_not_found'}
145 0 0 59 $http_host and $env->{'SERVER_PORT'}

or 2 conditions

line l !l condition
67 16 12 $self->{'_mapping'}{$host} ||= [{}, $index, [1, 0]]
109 6 9 $map->[4] ||= {}
110 3 12 $map->[4]{"$n.$m"} ||= [{}, $index, [$n, $m]]
121 2 13 $map->[0]{$path} ||= [{}, $index, [1, 1]]
199 29 29 $params || []

or 3 conditions

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