ArangoDB2/Transaction.pm

filter: Statementstmt 68.0% 17 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 45.4% 5 / 11 Podpod 100% 6 / 6 totaltotal 66.6% 28 / 42 CC 1 SCAR 4.4
CC
1
Cov
68%
action
2.0
collections
2.0
execute
2.0
CRAP 1.5
« ArangoDB2/Edge.pm ↑ Summary ArangoDB2/HTTP/Curl.pm »
1 package ArangoDB2::Transaction;
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::Base
8 22 );
9  
10 22 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 22 ▶use JSON::XS;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 22 my $JSON = JSON::XS->new->utf8;
14  
15  
16  
17 # action
18 #
19 # get/set action
20 0 ▶sub action { shift->_get_set('action', @_) }
Subroutine action: not called CC=1 SCAR=6.9
Pod documented
21  
22 # collections
23 #
24 # get/set collections
25 0 ▶sub collections { shift->_get_set('collections', @_) }
Subroutine collections: not called CC=1 SCAR=6.9
Pod documented
26  
27 sub execute
28 0 ▶{
Subroutine execute: not called CC=1 SCAR=6.9
Pod documented
29 0 my($self, $args) = @_;
30 # process args
31 0 $args = $self->_build_args($args, [qw(
32 action collections lockTimeout params waitForSync
33 )]);
34  
35 0 return $self->arango->http->post(
36 $self->api_path('transaction'),
37 undef,
38 $JSON->encode($args),
39 );
40 }
41  
42 # lockTimeout
43 #
44 # get/set lockTimeout
45 0 ▶sub lockTimeout { shift->_get_set('lockTimeout', @_) }
Subroutine lockTimeout: not called CC=1 SCAR=6.9
Pod documented
46  
47 # params
48 #
49 # get/set params
50 0 ▶sub params { shift->_get_set('params', @_) }
Subroutine params: not called CC=1 SCAR=6.9
Pod documented
51  
52 # waitForSync
53 #
54 # get/set waitForSync value
55 0 ▶sub waitForSync { shift->_get_set_bool('waitForSync', @_) }
Subroutine waitForSync: not called CC=1 SCAR=6.9
Pod documented
56  
57 22 1;
58  
59 __END__
« ArangoDB2/Edge.pm ↑ Summary ArangoDB2/HTTP/Curl.pm »