| blib/lib/Mojolicious/Plugin/Restify.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 19 | 44 | 43.1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 154 | 0 | 2 | 0 | ref $routes and ref $routes eq 'ARRAY' |
| 213 | 22 | 0 | 1 | ref $path and ref $path eq 'ARRAY' |
| line | l | !l | condition |
|---|---|---|---|
| 11 | 1 | 0 | $conf //= {} |
| 22 | 1 | 0 | $conf->{'over'} //= 'standard' |
| 25 | 0 | 1 | $conf->{'resource_lookup'} //= 1 |
| 39 | 0 | 0 | $captures->{'int'} // '' |
| 63 | 0 | 0 | $captures->{'uuid'} // '' |
| 78 | 1 | 1 | $options->{'element'} //= 1 |
| 104 | 0 | 2 | $options->{'placeholder'} //= ':' |
| 144 | 0 | 0 | $c->match->stack->[-1]{"${name}_id"} // '' |
| 157 | 1 | 1 | $defaults //= {} |
| 222 | 1 | 8 | $hashref->{$key} //= {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 39 | 2 | 0 | 0 | $captures->{$pattern} // $captures->{'int'} |
| 63 | 0 | 0 | 0 | $captures->{$pattern} // $captures->{'uuid'} |
| 103 | 0 | 2 | 0 | $options->{'over'} //= $conf->{'over'} |
| 105 | 2 | 0 | 0 | $options->{'resource_lookup'} //= $conf->{'resource_lookup'} |
| 111 | 0 | 0 | 2 | $options->{'method_map'} // $conf->{'method_map'} |
| 158 | 1 | 1 | 0 | $defaults->{'resource_lookup'} //= $conf->{'resource_lookup'} |