Branch Coverage

blib/lib/Plack/Middleware/Proxy/RewriteLocation.pm
Criterion Covered Total %
branch 2 14 14.2


line true false branch
14 0 0 unless $to =~ /\Q$last_part\E$/
27 6 20 if (my $m = $self->url_map)
43 0 0 unless ref $cb eq 'CODE'
48 0 0 if ($$env{'HTTP_HOST'} and my $location = Plack::Util::header_get($$res[1], 'Location'))
51 0 0 if ($self->url_map) { }
69 0 0 if defined $$env{'QUERY_STRING'} and $$env{'QUERY_STRING'}
77 0 0 if $location =~ s/^$remote/$proxy_url/