Branch Coverage

blib/lib/Eixo/Rest/Client.pm
Criterion Covered Total %
branch 28 40 70.0


line true false branch
36 0 3 unless $self->endpoint
46 3 7 if ($ua_str)
67 1 7 unless (grep {$method eq $_;} 'put', 'get', 'post', 'delete', 'patch')
73 1 6 if (exists $args{'id'})
78 2 5 if (exists $args{'action'})
83 0 7 if ($args{'__job_id'}) { }
90 5 2 unless ($args{'__format'})
95 7 0 unless (defined $args{'PROCESS_DATA'}{'onError'})
106 2 5 if ($uri = $args{'uri'}) { }
221 3 4 unless $args{'POST_DATA'}
228 4 0 if ($content_type eq 'application/json') { }
238 0 0 unless $args{'POST_DATA'}
245 4 0 if $content
255 1 4 if defined $id
256 2 3 if defined $action
258 2 3 if $implicit_format
262 2 1 $self->current_method =~ /^get/ ? :
272 2 0 unless $endpoint =~ m[/$]
311 0 0 unless $Eixo::Rest::Client::Config{'useithreads'}
343 0 0 if (defined $self->error_callback) { }