Branch Coverage

blib/lib/Doit/Lwp.pm
Criterion Covered Total %
branch 30 32 93.7


line true false branch
29 3 1 if $ua
37 1 12 unless (defined $url)
38 1 11 unless (defined $filename)
40 1 10 unless ($refresh =~ /^(always|never)$/)
43 1 9 if %opts
45 1 8 if (-e $filename and $refresh eq "never")
52 0 8 if ($self->is_dry_run) { }
57 4 4 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 1 3 if ($debug)
77 1 3 if ($resp->code == 304) { }
1 2 elsif (not $resp->is_success) { }
0 2 elsif ($resp->header('X-Died')) { }