| blib/lib/Mojo/File.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 27 | 31 | 87.1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 79 | 2125 | 513 | 11 | $is_dir and !$options->{'max_depth'} || $depth + 1 < $options->{'max_depth'} |
| line | l | !l | condition | |
|---|---|---|---|---|
| 41 | 2 | 11 | shift() // {} | |
| 44 | 1 | 12 | $options->{'headers'} // {} | |
| 53 | 3 | 28 | shift() // {} | |
| 66 | 50 | 186 | shift() // {} | |
| 121 | 45 | 1 | 0 | unlink $$self or croak(qq[Can't remove file "$$self": $!]) |
| 151 | 53 | 0 | $file->syswrite($content) // -1 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 43 | 1 | 12 | 0 | $options->{'ua'} || do { require Mojo::UserAgent; 'Mojo::UserAgent'->new('max_redirects', 10, 'max_response_size', 0) } |
| 78 | 57 | 2088 | 504 | $options->{'dir'} or not $is_dir |
| 79 | 502 | 11 | 11 | !$options->{'max_depth'} || $depth + 1 < $options->{'max_depth'} |
| 105 | 6922 | 4233 | 0 | ref $class || $class |
| 186 | 1 | 2 | 3 | $err->{'message'} eq "Download complete" or $err->{'message'} eq "Download incomplete" |