blib/lib/Mojolicious/Plugin/Thumbnail.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 2 | 12 | 16.6 |
line | true | false | branch |
---|---|---|---|
20 | 4 | 0 | @_ ? : |
27 | 4 | 0 | unless $src_image->open('file', $$conf{'src'}) |
32 | 0 | 0 | if (not $dst_height or $dst_width and $src_width < $src_height) { } |
40 | 0 | 0 | if ($$conf{'width'} and $$conf{'height'}) |
44 | 0 | 0 | unless ($$conf{'dst'}) |
49 | 0 | 0 | unless $dst_image->write('file', $$conf{'dst'}) |