| blib/lib/Dancer/Plugin/Dropbox.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 17 | 33 | 51.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 180 | 12 | 0 | 0 | @args == 1 and ref $args[0] eq 'HASH' |
| 257 | 0 | 0 | 2 | $target and -d $target |
| 304 | 0 | 0 | 2 | $target and -d $target |
| 340 | 0 | 1 | 7 | $target and -e $target |
| 364 | 0 | 2 | 25 | $user and _check_root($user) |
| 441 | 4 | 0 | 34 | $root and $root eq $username |
| line | l | !l | condition |
|---|---|---|---|
| 190 | 0 | 12 | $template_tokens ||= {} |
| 191 | 12 | 0 | $filepath ||= '/' |
| 192 | 0 | 12 | $listing_params ||= {} |
| 222 | 0 | 5 | plugin_setting()->{'layout'} || 'main' |
| 223 | 0 | 5 | plugin_setting()->{'token'} || 'listing' |
| 357 | 18 | 9 | $filepath ||= '/' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 358 | 27 | 0 | 0 | plugin_setting()->{'basedir'} || catdir(config()->{'appdir'}, 'dropbox-datadir') |