Branch Coverage

blib/lib/Catalyst/Plugin/SmartURI.pm
Criterion Covered Total %
branch 24 32 75.0


line true false branch
182 19 27 $context ? :
186 1 45 unless defined $uri
191 32 13 $req->{'base'} ? :
199 4 0 $context ? :
203 1 3 unless defined $referer
208 0 3 if ($referer =~ /^$base/) { }
227 0 4 if $@
233 4 0 unless ($request_class->isa('Catalyst::Request::SmartURI'))
239 4 0 $inject_rest ? :
261 0 8 if $@
266 2 6 if ($disposition eq 'host-header') { }
269 1 1 $host =~ s/:(\d+)$// ? :
271 1 1 if ($port)
272 0 1 if $c->req->uri->scheme eq 'http' and $port == 80
273 0 1 if $c->req->uri->scheme eq 'https' and $port == 443
277 1 1 if $port