Branch Coverage

blib/lib/REST/Neo4p/Constraint/Relationship.pm
Criterion Covered Total %
branch 32 58 55.1


line true false branch
22 0 9 unless $self->tag
23 0 9 unless defined $constraints and ref $constraints eq 'HASH'
24 6 3 if (my $cond = $constraints->{'_condition'})
25 0 6 unless (grep /^$cond$/, ('only', 'none'))
31 0 9 unless (ref $constraints->{'_descriptors'} eq 'ARRAY')
35 0 13 unless (ref $_ eq 'HASH')
48 0 4 unless defined $value
49 0 4 unless (ref $value eq 'HASH')
55 1 3 unless (grep /^$tag1$/, keys %$REST::Neo4p::Constraint::CONSTRAINT_TABLE)
58 1 2 unless (grep /^$tag2$/, keys %$REST::Neo4p::Constraint::CONSTRAINT_TABLE)
73 0 0 if ($k eq $from and $v eq $to)
84 0 0 unless ($condition =~ /^(only|none)$/)
95 0 11 unless defined $from
96 0 11 if (ref($reln) =~ /Neo4p::Relationship$/)
101 0 11 unless defined $reln_type
102 0 11 unless not $reln_props or ref $reln_props eq 'HASH'
104 0 11 unless (ref($from) =~ /Neo4p::Node|HASH$/ and ref($to) =~ /Neo4p::Node|HASH$/)
111 2 9 unless $self->rtype eq '*' or $reln_type eq $self->rtype
114 9 0 if ($REST::Neo4p::Constraint::STRICT_RELN_TYPES)
115 0 9 unless REST::Neo4p::Constraint::validate_relationship_type($reln_type)
118 0 9 if $self->condition eq 'none' and not defined $self->constraints->{$reln_type}
121 0 9 if ref($from) =~ /Neo4p::Node$/
122 0 9 if ref($to) =~ /Neo4p::Node$/
138 8 1 if (@descriptors) { }
140 3 5 if $self->condition eq 'only' and not $found
141 0 5 if $self->condition eq 'none' and $found
144 1 0 if $self->condition eq 'only'
149 0 5 if ($REST::Neo4p::Constraint::STRICT_RELN_PROPS)
153 0 0 unless REST::Neo4p::Constraint::validate_properties($reln_props)