Branch Coverage

blib/lib/Plack/App/URLMap.pm
Criterion Covered Total %
branch 14 18 77.7


line true false branch
5 0 34 $ENV{'PLACK_URLMAP_DEBUG'} ? :
16 3 19 if ($location =~ m[^https?://(.*?)(/.*)])
21 0 22 unless ($location =~ m[^/])
34 0 24 unless $Plack::App::URLMap::b->[0] <=> $Plack::App::URLMap::a->[0]
35 12 46 $_->[0] ? :
47 30 0 if ($http_host and my $port = $env->{'SERVER_PORT'})
56 15 4 unless not defined $host or $http_host eq $host or $server_name eq $host
59 18 33 unless $location eq '' or $path =~ s/$location_re//
60 3 30 unless $path eq '' or $path =~ m[^/]