Condition Coverage

blib/lib/Mojolicious/Plugin/StrictCORS.pm
Criterion Covered Total %
condition 0 26 0.0


and 3 conditions

line !l l&&!r l&&r condition
43 0 0 0 $h->header('Origin') =~ qr/\S/msu and $h->header('Access-Control-Request-Method') =~ qr/\S/msu
189 0 0 0 grep {uc $_ eq 'GET';} @params_methods and not grep({uc $_ eq 'HEAD';} @params_methods)

or 2 conditions

line l !l condition
12 0 0 $conf->{'max_age'} //= 3600
13 0 0 $conf->{'expose'} //= []
111 0 0 $headers || ''
137 0 0 $params->{'origin'} //= []
149 0 0 $params->{'credentials'} //= 0
151 0 0 $params->{'expose'} //= []
175 0 0 $params->{'origin'} //= []
186 0 0 $params->{'methods'} //= []
197 0 0 $params->{'headers'} //= []
210 0 0 $params->{'credentials'} //= 0