Condition Coverage

blib/lib/Plack/Middleware/RedirectSSL.pm
Criterion Covered Total %
condition 29 30 96.6


and 3 conditions

line !l l&&!r l&&r condition
25 5 2 2 'GET' ne $m and 'HEAD' ne $m
34 3 1 9 $is_ssl and my $hsts = $self->hsts_header
75 7 28 3 defined $opt and 'HASH' ne ref $opt
94 21 4 2 0 == $max_age and $include_subdomains || $preload

or 2 conditions

line l !l condition
45 9 1 $policy->{'max_age'} || '00'

or 3 conditions

line l !l&&r !l&&!r condition
53 5 1 2 $value || !defined($value)
3 3 0 $self->{'hsts_policy'} || ()
75 2 3 35 1 != @_ or defined $opt and 'HASH' ne ref $opt
94 1 1 4 $include_subdomains || $preload

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
23 10 4 5 3 $is_ssl xor $do_ssl