blib/lib/Path/Tiny/Archive/Zip.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 11 | 20 | 55.0 |
line | true | false | branch |
---|---|---|---|
45 | 3 | 1 | if ($self->is_file) { } |
1 | 0 | elsif ($self->is_dir) { } | |
46 | 2 | 1 | defined $level ? : |
49 | 0 | 1 | defined $level ? : |
57 | 0 | 4 | unless ($zip->writeToFileNamed($dest->realpath->stringify) == 0) |
70 | 0 | 2 | unless ($zip->read($self->realpath->stringify) == 0) |
75 | 2 | 0 | if ($dest->exists) { } |
76 | 0 | 2 | unless $dest->is_dir |
79 | 0 | 0 | unless $dest->mkpath |
82 | 0 | 2 | unless ($zip->extractTree(undef, $dest->realpath->stringify) == 0) |