Branch Coverage

blib/lib/Net/MyCommerce/API/Client.pm
Criterion Covered Total %
branch 15 32 46.8


line true false branch
85 0 2 if (ref $path eq 'ARRAY')
89 0 2 if (keys %$params > 0)
102 2 0 if ($opts{'method'} =~ /^(POST|PUT)$/) { }
103 0 2 if $$self{'sendJSON'}
113 0 2 if ($$self{'credentials'}{'id'} and $$self{'credentials'}{'secret'}) { }
0 2 elsif ($opts{'token_id'}) { }
120 2 0 if ($opts{'method'} =~ /^(POST|PUT)$/)
121 0 2 if ($$self{'sendJSON'}) { }
142 2 0 if ($response)
147 2 0 if ($content) { }
149 2 0 if $$self{'getJSON'}
151 0 0 if $$self{'getJSON'}
157 2 0 if (ref $content eq 'HASH')
159 0 2 if $$content{'error_code'}
160 2 0 if $$content{'error_description'}
163 2 0 if ($response->code =~ /^[345]/)