Branch Coverage

blib/lib/PAGI/Middleware/SecurityHeaders.pm
Criterion Covered Total %
branch 23 28 82.1


line true false branch
72 4 6 exists $config->{'x_frame_options'} ? :
74 2 8 exists $config->{'x_content_type_options'} ? :
76 3 7 exists $config->{'x_xss_protection'} ? :
78 2 8 exists $config->{'referrer_policy'} ? :
90 7 10 if ($scope->{'type'} ne "http")
98 10 10 if ($event->{'type'} eq "http.response.start")
112 9 1 if (defined $self->{'x_frame_options'})
117 10 0 if (defined $self->{'x_content_type_options'})
122 9 1 if (defined $self->{'x_xss_protection'})
127 10 0 if (defined $self->{'referrer_policy'})
132 0 10 if (defined $self->{'strict_transport_security'})
134 0 0 if ($scheme eq "https")
140 2 8 if (defined $self->{'content_security_policy'})
145 2 8 if (defined $self->{'permissions_policy'})