lib/Neo4j/Types/Relationship.pm

filter: Statementstmt 100% 22 / 22 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 6 / 6 totaltotal 100% 40 / 40 SCAR 11.0
CC
3
Cov
100%
get
2.0
properties
2.0
BEGIN
1.0
CRAP 3.0
« lib/Neo4j/Types/Point.pm ↑ Summary blib/lib/Neo4j/Types.pm »
1 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Neo4j::Types::Relationship;
5 # ABSTRACT: Describes a relationship from a Neo4j graph
6 2 $Neo4j::Types::Relationship::VERSION = '1.00';
7  
8  
9 sub get {
10 6 ▶ my ($self, $property) = @_;
Subroutine get: called CC=2 SCAR=6.9
Pod documented
11
12 6 ▶ return unless defined $self->{properties};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $self->{"properties"} 1 5 6
13 5 return $self->{properties}->{$property};
14 }
15  
16  
17 sub id {
18 3 ▶ my ($self) = @_;
Subroutine id: called CC=1 SCAR=0.0
Pod documented
19
20 3 return $self->{id};
21 }
22  
23  
24 sub type {
25 2 ▶ my ($self) = @_;
Subroutine type: called CC=1 SCAR=0.0
Pod documented
26
27 2 return $self->{type};
28 }
29  
30  
31 sub start_id {
32 2 ▶ my ($self) = @_;
Subroutine start_id: called CC=1 SCAR=0.0
Pod documented
33
34 2 return $self->{start};
35 }
36  
37  
38 sub end_id {
39 2 ▶ my ($self) = @_;
Subroutine end_id: called CC=1 SCAR=0.0
Pod documented
40
41 2 return $self->{end};
42 }
43  
44  
45 sub properties {
46 3 ▶ my ($self) = @_;
Subroutine properties: called CC=2 SCAR=6.9
Pod documented
47
48 3 ▶ return {} unless defined $self->{properties};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $self->{"properties"} 1 2 3
49 2 return $self->{properties};
50 }
51  
52  
53 2 1;
54  
55 __END__
« lib/Neo4j/Types/Point.pm ↑ Summary blib/lib/Neo4j/Types.pm »