ArangoDB2/Edge.pm

filter: Statementstmt 58.8% 10 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 37.5% 3 / 8 Podpod 100% 3 / 3 totaltotal 57.1% 16 / 28 CC 1 SCAR 4.9
CC
1
Cov
59%
create
2.0
from
2.0
to
2.0
CRAP 1.6
« ArangoDB2.pm ↑ Summary ArangoDB2/Transaction.pm »
1 package ArangoDB2::Edge;
2  
3 22 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 22 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 22 ▶use base qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
7 ArangoDB2::Document
8 22 );
9  
10  
11  
12 # create
13 #
14 # override ArangoDB2::Document create so that we can add from
15 # and to values to the request
16 sub create
17 0 ▶{
Subroutine create: not called CC=1 SCAR=6.9
Pod documented
18 0 my($self, $data, $args) = @_;
19 # process args
20 0 $args = $self->_build_args($args, ['from','to']);
21 # call ArangoDB2::Document::create
22 0 return $self->SUPER::create($data, $args);
23 }
24  
25 # from
26 #
27 # get/set from
28 0 ▶sub from { shift->_get_set_id('from', @_) }
Subroutine from: not called CC=1 SCAR=6.9
Pod documented
29  
30 # to
31 #
32 # get/set to
33 0 ▶sub to { shift->_get_set_id('to', @_) }
Subroutine to: not called CC=1 SCAR=6.9
Pod documented
34  
35 # _class
36 #
37 # internal name for class
38 0 ▶sub _class { 'edge' }
Subroutine _class: not called CC=1 SCAR=6.9
39  
40 # _register
41 #
42 # internal name for object index
43 0 ▶sub _register { 'edges' }
Subroutine _register: not called CC=1 SCAR=6.9
44  
45 22 1;
46  
47 __END__
« ArangoDB2.pm ↑ Summary ArangoDB2/Transaction.pm »