Branch Coverage

lib/PAGI/Middleware/SecurityHeaders.pm
Criterion Covered Total %
branch 15 28 53.5


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