blib/lib/Dancer/Plugin/CORS.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 13 | 17 | 76.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
83 | 8 | 0 | 22 | blessed $route and $route->isa('Dancer::Route') |
196 | 1 | 0 | 2 | defined $$options{'timing'} and $$options{'timing'} eq '1' |
243 | 13 | 6 | 2 | $preflight and exists $$options{'maxage'} |
line | l | !l | condition |
---|---|---|---|
138 | 1 | 47 | scalar $request->header('Access-Control-Request-Headers') || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
110 | 13 | 39 | 0 | exists $$routes{$path} or exists $$routes{$route} |
354 | 6 | 1 | 0 | $current_sharing ||= $class->new(@_, '_add_rule', \&_add_rule) |