Condition Coverage

blib/lib/Dancer/Plugin/RPC/RESTISH.pm
Criterion Covered Total %
condition 40 48 83.3


and 3 conditions

line !l l&&!r l&&r condition
67 23 6 1 request()->body and request()->content_type ne 'application/json'
78 18 5 6 $has_origin && $http_method eq 'OPTIONS'
81 18 0 11 $allow_origin and $has_origin
18 10 1 $allow_origin and $has_origin and not $allowed_origin
111 32 14 14 $allow_origin and $is_preflight
129 1 0 1 $allow_origin and $is_preflight
142 17 0 9 $allow_origin and $has_origin
182 0 1 20 &blessed($continue) && $continue->isa('Dancer::RPCPlugin::CallbackResult')
0 19 1 &blessed($continue) and not $continue->success
216 2 0 1 &blessed($error) && $error->can('as_restish_error')
225 17 1 1 &blessed($response) and $response->can('as_restish_error')

or 2 conditions

line l !l condition
33 2 12 $arguments->{'cors_allow_origin'} || ''
37 13 1 $arguments->{'publish'} // 'config'
74 11 18 request()->header('Origin') || ''
102 3 2 request()->header('Access-Control-Request-Method') // 'GET'
164 22 0 request()->params('route') // {}
299 3 4 $self->http_status // 500

or 3 conditions

line l !l&&r !l&&!r condition
76 10 0 19 $allow_origin eq '*' || grep({$_ eq $has_origin;} @allowed_origins)