Coincheck/Transfer.pm

filter: Statementstmt 61.9% 13 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 3 totaltotal 56.6% 17 / 30 CC 1 SCAR 2.9
CC
1
Cov
62%
to_leverage
2.0
from_leverage
2.0
BEGIN
1.0
CRAP 1.3
« Coincheck/Send.pm ↑ Summary Coincheck/Leverage.pm »
1 package WebService::Coincheck::Transfer;
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 2 ▶use Class::Accessor::Lite (
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ro => [qw/
6 client
7 /],
8 2 );
9  
10 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
11 1 my $class = shift;
12 1 my $client = shift;
13  
14 1 bless {
15 client => $client,
16 }, $class;
17 }
18  
19 0 ▶sub to_leverage {
Subroutine to_leverage: not called CC=1 SCAR=6.9
Pod undocumented
20 0 my ($self, %params) = @_;
21  
22 my $req_params = {
23 amount => $params{amount},
24 currency => $params{currency},
25 0 };
26  
27 0 my $res = $self->client->request(
28 'POST' => 'api/exchange/transfers/to_leverage',
29 $req_params,
30 );
31  
32 0 return $res;
33 }
34  
35 0 ▶sub from_leverage {
Subroutine from_leverage: not called CC=1 SCAR=6.9
Pod undocumented
36 0 my ($self, %params) = @_;
37  
38 my $req_params = {
39 amount => $params{amount},
40 currency => $params{currency},
41 0 };
42  
43 0 my $res = $self->client->request(
44 'POST' => 'api/exchange/transfers/from_leverage',
45 $req_params,
46 );
47  
48 0 return $res;
49 }
50  
51 2 1;
« Coincheck/Send.pm ↑ Summary Coincheck/Leverage.pm »