Branch Coverage

blib/lib/HTTP/Simple.pm
Criterion Covered Total %
branch 41 48 85.4


line true false branch
39 1 2 if $res->{'success'}
40 1 1 if $res->{'status'} == 599
47 1 4 ref $JSON ? :
5 2 if $res->{'success'}
48 1 1 if $res->{'status'} == 599
55 1 2 if $res->{'success'}
56 1 1 if $res->{'status'} == 599
63 1 2 if $res->{'status'} == 599
71 0 2 if $res->{'status'} == 599
72 0 2 unless close $temp
73 0 2 unless rename $temp->filename, $file
81 1 2 if $res->{'success'}
82 1 1 if $res->{'status'} == 599
89 1 2 if $res->{'success'}
90 1 1 if $res->{'status'} == 599
98 3 1 ref $JSON ? :
100 2 2 if $res->{'success'}
101 1 1 if $res->{'status'} == 599
107 0 5 unless open my $fh, '<:raw', $file
109 0 5 if defined $content_type
113 3 2 if $res->{'success'}
114 1 1 if $res->{'status'} == 599
128 3 2 if defined $code
132 0 0 unless defined $code