Branch Coverage

blib/lib/HTTP/Simple.pm
Criterion Covered Total %
branch 41 46 89.1


line true false branch
29 1 2 if $res->{'success'}
30 1 1 if $res->{'status'} == 599
37 1 4 ref $JSON ? :
5 2 if $res->{'success'}
38 1 1 if $res->{'status'} == 599
45 1 2 if $res->{'success'}
46 1 1 if $res->{'status'} == 599
53 1 2 if $res->{'status'} == 599
61 0 2 if $res->{'status'} == 599
62 0 2 unless close $temp
63 0 2 unless rename $temp->filename, $file
71 1 2 if $res->{'success'}
72 1 1 if $res->{'status'} == 599
79 1 2 if $res->{'success'}
80 1 1 if $res->{'status'} == 599
88 3 1 ref $JSON ? :
90 2 2 if $res->{'success'}
91 1 1 if $res->{'status'} == 599
97 0 5 unless open my $fh, '<:raw', $file
99 0 5 if defined $content_type
103 3 2 if $res->{'success'}
104 1 1 if $res->{'status'} == 599
118 3 2 if defined $code