Condition Coverage

blib/lib/Mojolicious/Plugin/SecurityHeader.pm
Criterion Covered Total %
condition 24 24 100.0


and 3 conditions

line !l l&&!r l&&r condition
138 1 4 11 defined $_ && $allowed{uc $_}
222 2 1 3 $value ne '1' and $value ne '0'
231 4 1 2 $value->{'mode'} and $value->{'mode'} eq 'block'

or 2 conditions

line l !l condition
140 6 4 $return || undef
152 6 1 $return || undef
220 5 1 $value //= ''

or 3 conditions

line l !l&&r !l&&!r condition
79 1 1 1 $header_value // $headers_default{$last_header}
106 40 6 5 $header_value // $headers_default{$last_header}
227 2 1 7 not exists $value->{'value'} or $value->{'value'} ne '1'