Branch Coverage

blib/lib/Net/Dynect/REST.pm
Criterion Covered Total %
branch 31 90 34.4


line true false branch
66 0 2 if defined $args{'debug'}
67 1 1 if defined $args{'server'}
68 1 1 if defined $args{'protocol'}
69 1 1 if defined $args{'base_path'}
70 1 1 if defined $args{'port'}
71 0 0 if (defined $args{'user_name'} and defined $args{'password'} and defined $args{'customer_name'})
80 0 0 unless ($login)
114 0 0 unless (defined $args{'user_name'} and defined $args{'customer_name'} and defined $args{'password'})
134 0 0 unless ($dynect_rest_request)
141 0 0 unless ($dynect_rest_response)
146 0 0 unless ($dynect_rest_response->status =~ /^success$/i)
164 0 0 unless ($self->session)
173 0 0 unless ($dynect_rest_request)
180 0 0 unless ($dynect_rest_response)
185 0 0 unless ($dynect_rest_response->status =~ /^success$/i)
202 0 1 if (ref $dynect_rest_request ne 'Net::Dynect::REST::Request') { }
0 1 elsif (not defined $dynect_rest_request->service && defined $dynect_rest_request->operation) { }
219 1 0 if ($dynect_rest_request->operation eq 'create') { }
0 0 elsif ($dynect_rest_request->operation eq 'read') { }
0 0 elsif ($dynect_rest_request->operation eq 'update') { }
0 0 elsif ($dynect_rest_request->operation eq 'delete') { }
220 0 1 if ($dynect_rest_request->params) { }
235 0 0 if ($dynect_rest_request->params) { }
250 0 0 if ($dynect_rest_request->params) { }
265 0 0 if ($dynect_rest_request->params) { }
291 0 1 if ($http_response->code eq 307)
292 0 0 if ($http_response->decoded_content =~ m[/REST/Job/(\d+)$]) { }
311 1 0 if defined $dynect_rest_response->msgs
328 0 0 if (@_)
330 0 0 if (defined $new and ref $new ne 'Net::Dynect::REST::Session')
338 0 0 unless defined $new
348 1 0 unless (defined $$self{'_webclient'})
359 0 4 if (@_)
361 0 0 unless ($new =~ /^\d$/)
374 4 0 unless $level <= $self->_debug_level
376 0 0 if ($level > 8) { }
399 1 3 if (@_)
414 1 3 if (@_)
416 0 1 unless $new =~ /^https?$/
430 1 3 if (@_)
432 0 1 unless $new =~ m[^/[\w\d/-]*$]
446 1 2 if (@_)
448 0 1 unless $new =~ /^\d+$/
462 0 1 unless $self->protocol and $self->server and $self->base_path
464 0 1 defined $self->port ? :