| blib/lib/Clustericious/Plugin/AutodataHandler.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 17 | 28 | 60.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 67 | 23 | 2 | 12 | $types{$type} and $types{$type}{'encode'} |
| line | l | !l | condition |
|---|---|---|---|
| 55 | 0 | 62 | $conf->{'default_decode'} // 'application/x-www-form-urlencoded' |
| 56 | 0 | 62 | $conf->{'default_encode'} // 'application/json' |
| 63 | 9 | 26 | $headers->header('Accept') || '' |
| 7 | 28 | $headers->content_type || '' | |
| 70 | 5 | 18 | $c->stash->{'format'} // 'json' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 34 | 0 | 2 | 0 | $conf->{'coders'} // 'Clustericious::Plugin::AutodataHandler'->_default_coders |
| 89 | 6 | 0 | 0 | $c->req->headers->content_type || $default_decode |
| 94 | 6 | 0 | 0 | $types{$content_type} || $types{$default_decode} |
| 108 | 0 | 0 | 0 | $args->{'mime_type'} // 'application/x-' . $ext |
| 125 | 62 | 5 | 108 | exists $c->stash->{'autodata'} or exists $args->{'autodata'} |