Payjp/Token.pm

filter: Statementstmt 100% 17 / 17 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 96.1% 25 / 26 CC 2 SCAR 2.9
CC
2
Cov
95%
retrieve
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Payjp/Event.pm ↑ Summary Payjp/Transfer.pm »
1 package Net::Payjp::Token;
2  
3 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 11 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 11 ▶use base 'Net::Payjp';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub create{
9 1 ▶ my $self = shift;
Subroutine create: called CC=1 SCAR=0.0
Pod documented
10 1 my %p = @_;
11  
12 1 $self->_request(method => 'POST', url => $self->_class_url, param => \%p);
13 }
14  
15 sub retrieve{
16 1 ▶ my $self = shift;
Subroutine retrieve: called CC=2 SCAR=7.0
Pod documented
17 1 my $id = shift;
18 1 ▶ $self->id($id) if $id;
Branch: 1 branch
BranchTrueFalseTotal
if $id 0 1 1
19  
20 1 $self->_request(method => 'GET', url => $self->_instance_url);
21 }
22  
23 11 1;
« Payjp/Event.pm ↑ Summary Payjp/Transfer.pm »