Branch Coverage

blib/lib/REST/Neo4p/Entity.pm
Criterion Covered Total %
branch 13 132 9.8


line true false branch
26 1 0 if ($entity_type eq 'entity')
32 0 0 unless $agent
35 0 0 $url_components ? :
40 0 0 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
47 0 0 ref $e && $e->can('rethrow') ? :
50 0 0 if ref $decoded_resp
51 0 0 ref $decoded_resp ? :
61 0 3 if ($entity_type eq 'entity')
65 0 3 unless (defined $decoded_resp)
69 2 1 unless ($REST::Neo4p::Entity::ENTITY_TABLE->{$entity_type}{'_actions'} or not $is_json)
72 0 23 unless defined $decoded_resp->{$_}
79 3 0 if ($is_json) { }
90 3 0 if ($is_json) { }
91 1 2 if ($decoded_resp->{'start'})
98 0 0 if ($decoded_resp->can('start_id'))
104 3 0 unless (defined $tbl_entry)
105 0 3 if ($is_json and $decoded_resp->{'template'})
119 0 3 if ($REST::Neo4p::CREATE_AUTO_ACCESSORS and $entity_type ne 'index')
121 0 0 $is_json ? :
122 0 0 unless $self->can($_)
131 0 0 if ($entity_type eq 'entity')
148 0 0 unless defined $self->_handle
158 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
162 0 0 ref $e && $e->can('rethrow') ? :
172 0 0 unless ref $props and ref $props eq 'HASH'
187 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught('REST::Neo4p::Exception')) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
192 0 0 ref $e && $e->can('rethrow') ? :
196 0 0 if ($REST::Neo4p::CREATE_AUTO_ACCESSORS)
197 0 0 unless $self->can($_)
211 0 0 unless $agent
221 0 0 if (my $e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
225 0 0 ref $e && $e->can('rethrow') ? :
233 0 0 @ret == 1 ? :
244 0 0 unless $agent
252 0 0 if ($e = 'REST::Neo4p::NotFoundException'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
256 0 0 ref $e && $e->can('rethrow') ? :
265 0 0 if (ref $_ eq 'HASH') { }
0 0 elsif (ref $_ eq 'ARRAY') { }
267 0 0 if (ref $v eq '') { }
290 0 0 unless $agent
297 0 0 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
302 0 0 ref $e && $e->can('rethrow') ? :
329 0 0 if ref $class
334 0 0 if ($entity_type eq 'entity') { }
340 0 0 if ($entity_type eq 'index' and not $idx_type)
344 0 0 unless ($REST::Neo4p::Entity::ENTITY_TABLE->{$entity_type}{$id})
347 0 0 unless $agent
349 0 0 if ($entity_type eq 'index') { }
357 0 0 if ($e = 'Exception::Class'->caught('REST::Neo4p::Exception')) { }
0 0 elsif ($@) { }
362 0 0 ref $@ ? :
366 0 0 unless (defined $decoded_resp)
384 0 0 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
389 0 0 ref $e && $e->can('rethrow') ? :
393 0 0 unless defined $decoded_resp
394 0 0 ref $decoded_resp ? :
418 0 0 if $self->_entry
425 0 0 if $self->_entry
443 0 0 if $REST::Neo4p::Entity::ENTITY_TABLE->{$entity_type}{$$self}{'entity_type'}