Braintree/ClientToken.pm

filter: Statementstmt 44.4% 4 / 9 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 1 / 3 Podpod 0.0% 0 / 2 totaltotal 31.2% 5 / 16 CC 2 SCAR 13.2
CC
2
Cov
36%
generate
6.0
gateway
2.0
BEGIN
1.0
CRAP 3.8
« Braintree/WebhookNotificationGateway.pm ↑ Summary Braintree/DisbursementDetails.pm »
1 package Net::Braintree::ClientToken;
2  
3 1 ▶use constant DEFAULT_VERSION => "2";
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 0 ▶sub generate {
Subroutine generate: not called CC=2 SCAR=17.9
Pod undocumented
6 0 my ($class, $params) = @_;
7 0 ▶ if (!exists $params->{version}) {
Branch: 1 branch
BranchTrueFalseTotal
unless (exists $params->{"version"}) 0 0 0
8 0 $params->{version} = DEFAULT_VERSION;
9 }
10  
11 0 $class->gateway->client_token->generate($params);
12 }
13  
14 0 ▶sub gateway {
Subroutine gateway: not called CC=1 SCAR=6.9
Pod undocumented
15 0 Net::Braintree->configuration->gateway;
16 }
17  
18 1 1;
« Braintree/WebhookNotificationGateway.pm ↑ Summary Braintree/DisbursementDetails.pm »