Branch Coverage

blib/lib/Doit/Lwp.pm
Criterion Covered Total %
branch 15 32 46.8


line true false branch
29 0 0 if $ua
37 0 4 unless (defined $url)
38 0 4 unless (defined $filename)
40 0 4 unless ($refresh =~ /^(always|never)$/)
43 0 4 if %opts
45 0 4 if (-e $filename and $refresh eq "never")
52 0 4 if ($self->is_dry_run) { }
57 4 0 if (ref $ua eq 'HTTP::Tiny') { }
58 2 2 if ($debug)
62 2 2 if (not $resp->{'success'}) { }
1 1 elsif ($resp->{'status'} == 304) { }
64 1 1 if ($resp->{'status'} == 599)
74 0 0 if ($debug)
77 0 0 if ($resp->code == 304) { }
0 0 elsif (not $resp->is_success) { }
0 0 elsif ($resp->header('X-Died')) { }