Branch Coverage

blib/lib/PAGI/Middleware/HTTPSRedirect.pm
Criterion Covered Total %
branch 10 20 50.0


line true false branch
64 0 3 if ($scope->{'type'} ne "http")
72 1 2 if ($scheme eq "https")
74 0 1 if ($self->{'hsts'}) { }
77 0 0 if ($event->{'type'} eq "http.response.start")
99 1 1 if ($self->_is_excluded($scope->{'path'}))
110 0 1 if defined $query and $query ne ""
120 0 1 if (ref $pattern eq 'Regexp') { }
121 0 0 if $path =~ /$pattern/
123 1 0 if $path eq $pattern
156 1 0 if lc $h->[0] eq $name