Condition Coverage

blib/lib/Mojo/File.pm
Criterion Covered Total %
condition 30 34 88.2


and 3 conditions

line !l l&&!r l&&r condition
80 2131 4 527 $is_dir and not -l $$child
2135 516 11 $is_dir and not -l $$child and !$options->{'max_depth'} || $depth + 1 < $options->{'max_depth'}

or 2 conditions

line l !l condition
41 2 11 shift() // {}
44 1 12 $options->{'headers'} // {}
53 3 28 shift() // {}
66 52 187 shift() // {}
122 45 1 0 unlink $$self or croak(qq[Can't remove file "$$self": $!])
152 55 0 $file->syswrite($content) // -1

or 3 conditions

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 66 2090 506 $options->{'dir'} or not $is_dir
80 505 11 11 !$options->{'max_depth'} || $depth + 1 < $options->{'max_depth'}
106 6940 4234 0 ref $class || $class
187 1 2 3 $err->{'message'} eq "Download complete" or $err->{'message'} eq "Download incomplete"