| blib/lib/Mojo/File.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 21 | 25 | 84.0 |
| line | l | !l | condition | |
|---|---|---|---|---|
| 42 | 2 | 11 | shift() // {} | |
| 45 | 1 | 12 | $options->{'headers'} // {} | |
| 54 | 3 | 28 | shift() // {} | |
| 67 | 50 | 186 | shift() // {} | |
| 123 | 45 | 1 | 0 | unlink $$self or croak(qq[Can't remove file "$$self": $!]) |
| 153 | 53 | 0 | $file->syswrite($content) // -1 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 44 | 1 | 12 | 0 | $options->{'ua'} || do { require Mojo::UserAgent; 'Mojo::UserAgent'->new('max_redirects', 10, 'max_response_size', 0) } |
| 81 | 60 | 2088 | 728 | $options->{'dir'} or not -d $File::Find::name |
| 107 | 6418 | 4233 | 0 | ref $class || $class |
| 188 | 1 | 2 | 3 | $err->{'message'} eq "Download complete" or $err->{'message'} eq "Download incomplete" |