Branch Coverage

blib/lib/Finance/CaVirtex/API.pm
Criterion Covered Total %
branch 10 30 33.3


line true false branch
62 3 0 if (not $self->private or defined $self->token and defined $self->secret)
78 0 3 if (not $self->request) { }
86 0 3 if (not $self->is_ready_to_send) { }
110 0 3 if ($self->private)
118 0 3 if ($self->request->request_type eq 'POST') { }
2 1 elsif ($self->request->request_type eq 'GET' and $uri->query) { }
152 3 0 unless (eval { do { '???'; $content = $self->json->decode($self->http_response->content); 1 } })
156 0 3 if (exists $$content{'status'}) { }
157 0 0 if (lc $$content{'status'} eq 'ok') { }
0 0 elsif ($$content{'status'} eq 'error') { }
158 0 0 if exists $$content{'apirate'}
159 0 0 if ($self->request->data_key) { }
166 0 0 if (ref $self->request->data_key) { }
168 0 0 if (exists $$content{$key})
237 0 3 $self->send ? :