Branch Coverage

blib/lib/REST/Neo4p/Index.pm
Criterion Covered Total %
branch 0 90 0.0


line true false branch
24 0 0 if (grep /^$name$/, ('node', 'relationship'))
29 0 0 unless (grep /^$index_type$/, ('node', 'relationship'))
37 0 0 if defined $config
42 0 0 if $idx
75 0 0 unless ($self->type eq $entity->entity_type)
80 0 0 unless (@entry_hash and ref $entry_hash[0] eq 'HASH' || !(@entry_hash % 2))
85 0 0 ref $entry_hash[0] eq 'HASH' ? :
99 0 0 if (my $e = 'REST::Neo4p::Exception'->caught) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
104 0 0 ref $e && $e->can('rethrow') ? :
114 0 0 unless ($self->type eq $entity->entity_type)
124 0 0 if (defined $key) { }
125 0 0 if (defined $value) { }
139 0 0 if ($e = 'Exception::Class'->caught('REST::Neo4p::Exception')) { }
0 0 elsif ($@) { }
144 0 0 ref $@ ? :
151 0 0 if ($self->is_batch)
161 0 0 if ($value) { }
167 0 0 if ($e = 'Exception::Class'->caught('REST::Neo4p::Exception')) { }
0 0 elsif ($@) { }
172 0 0 ref $@ ? :
183 0 0 if (my $e = 'Exception::Class'->caught('REST::Neo4p::Exception')) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
188 0 0 ref $e && $e->can('rethrow') ? :
192 0 0 $self->type eq 'node' ? :
213 0 0 unless ($self->type eq 'node')
216 0 0 unless (defined $key and defined $value and defined $properties and ref $properties eq 'HASH')
220 0 0 unless ($on_found =~ /^get|fail$/)
227 0 0 $on_found eq 'get' ? :
236 0 0 if (my $e = 'Exception::Class'->caught('REST::Neo4p::ConflictException')) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
237 0 0 if ($on_found eq 'fail') { }
245 0 0 ref $e && $e->can('rethrow') ? :
255 0 0 unless ($self->type eq 'relationship')
258 0 0 unless (defined $key and defined $value and defined $from_node and defined $to_node and defined $rel_type and ref $from_node eq 'REST::Neo4p::Node' and ref $to_node eq 'REST::Neo4p::Node')
265 0 0 unless (not defined $properties or ref $properties eq 'HASH')
268 0 0 unless ($on_found =~ /^get|fail$/)
275 0 0 $on_found eq 'get' ? :
282 0 0 if defined $properties
287 0 0 if (my $e = 'Exception::Class'->caught('REST::Neo4p::ConflictException')) { }
0 0 elsif ($e = 'Exception::Class'->caught) { }
288 0 0 if ($on_found eq 'fail') { }
296 0 0 ref $e && $e->can('rethrow') ? :
307 0 0 if $self->_entry
311 0 0 if $self->_entry