Condition Coverage

blib/lib/Dancer/Plugin/SporeDefinitionControl.pm
Criterion Covered Total %
condition 19 23 82.6


and 3 conditions

line !l l&&!r l&&r condition
185 8 0 16 uc $req->method eq 'OPTIONS' and defined $Dancer::Plugin::SporeDefinitionControl::path_validation->{'path'}{$req->{'_route_pattern'}}
312 25 0 11 defined $req->header('Origin') and defined $build_options_route->{'header_allow_allow_origins'}
25 1 10 defined $req->header('Origin') and defined $build_options_route->{'header_allow_allow_origins'} and $req->header('Origin') ~~ \@{$$build_options_route{'header_allow_allow_origins'};}

or 2 conditions

line l !l condition
267 37 0 $code_error ||= 400
314 30 6 $build_options_route->{'header_allow_credentials'} || ''
315 30 6 $build_options_route->{'header_allow_headers'} || ''
318 30 6 $build_options_route->{'header_max_age'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
178 60 2 8 defined $Dancer::Plugin::SporeDefinitionControl::path_validation->{'method'}{$req->method} or uc $req->method eq 'OPTIONS'
185 38 24 0 defined $Dancer::Plugin::SporeDefinitionControl::path_validation->{'method'}{$req->method}{$req->{'_route_pattern'}} or uc $req->method eq 'OPTIONS' and defined $Dancer::Plugin::SporeDefinitionControl::path_validation->{'path'}{$req->{'_route_pattern'}}