Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
134 11 4 1 not ref $value and $value eq '*'
142 1 4 11 defined $_ && $allowed{uc $_}
226 2 1 3 $value ne '1' and $value ne '0'
235 4 1 2 $value->{'mode'} and $value->{'mode'} eq 'block'

or 2 conditions

line l !l condition
144 6 4 $return || undef
156 6 1 $return || undef
224 5 1 $value //= ''

or 3 conditions

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