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