Condition Coverage

blib/lib/Dancer/Plugin/RPC/RESTISH.pm
Criterion Covered Total %
condition 40 49 81.6


and 3 conditions

line !l l&&!r l&&r condition
86 26 6 1 request()->body and $ct ne 'application/json'
97 21 5 6 $has_origin && $http_method eq 'OPTIONS'
100 21 0 11 $allow_origin and $has_origin
21 10 1 $allow_origin and $has_origin and not $allowed_origin
130 35 14 14 $allow_origin and $is_preflight
148 1 0 1 $allow_origin and $is_preflight
161 20 0 9 $allow_origin and $has_origin
211 0 1 23 &blessed($continue) && $continue->isa('Dancer::RPCPlugin::CallbackResult')
0 21 2 &blessed($continue) and not $continue->success
249 2 0 1 &blessed($error) && $error->can('as_restish_error')
259 19 1 1 &blessed($response) and $response->can('as_restish_error')
269 12 0 13 config()->{'encoding'} and config()->{'encoding'} =~ /^utf-?8$/i

or 2 conditions

line l !l condition
51 2 14 $arguments->{'cors_allow_origin'} || ''
55 15 1 $arguments->{'publish'} // 'config'
93 11 21 request()->header('Origin') || ''
121 3 2 request()->header('Access-Control-Request-Method') // 'GET'
183 25 0 request()->params('route') // {}

or 3 conditions

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