Neo4j/Types/Path.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 3 / 3 totaltotal 100% 29 / 29 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Neo4j/Types/Duration.pm ↑ Summary
1 2 ▶use v5.10.1;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Neo4j::Types::Path;
6 # ABSTRACT: Represents a Neo4j path of nodes and relationships
7 2 $Neo4j::Types::Path::VERSION = '2.00';
8  
9  
10 6 ▶sub elements {
Subroutine elements: called CC=1 SCAR=0.0
Pod documented
11 6 my ($self) = @_;
12
13 6 return @$self;
14 }
15  
16  
17 6 ▶sub nodes {
Subroutine nodes: called CC=1 SCAR=0.0
Pod documented
18 6 my ($self) = @_;
19
20 6 my $i = 0;
21 6 return grep { ++$i & 1 } @$self;
22 }
23  
24  
25 6 ▶sub relationships {
Subroutine relationships: called CC=1 SCAR=0.0
Pod documented
26 6 my ($self) = @_;
27
28 6 my $i = 0;
29 6 return grep { $i++ & 1 } @$self;
30 }
31  
32  
33 2 1;
« Neo4j/Types/Duration.pm ↑ Summary