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
87 26 6 1 request()->body and $ct ne "application/json"
98 21 5 6 $has_origin && $http_method eq 'OPTIONS'
101 21 0 11 $allow_origin and $has_origin
21 10 1 $allow_origin and $has_origin and not $allowed_origin
131 35 14 14 $allow_origin and $is_preflight
149 1 0 1 $allow_origin and $is_preflight
162 20 0 9 $allow_origin and $has_origin
213 0 1 23 &blessed($continue) && $continue->isa('Dancer::RPCPlugin::CallbackResult')
0 21 2 &blessed($continue) and not $continue->success
251 2 0 1 &blessed($error) && $error->can('as_restish_error')
261 19 1 1 &blessed($response) and $response->can("as_restish_error")
271 12 0 13 config()->{'encoding'} and config()->{'encoding'} =~ /^utf-?8$/i

or 2 conditions

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

or 3 conditions

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