Braintree/ClientToken.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 15 CC 2 SCAR 13.9
CC
2
Cov
0%
generate
6.0
gateway
2.0
BEGIN
2.0
CRAP 4.0
1 package Net::Braintree::ClientToken;
2  
3 use constant DEFAULT_VERSION => "2";
4  
5 sub generate {
6 my ($class, $params) = @_;
7 if (!exists $params->{version}) {
8 $params->{version} = DEFAULT_VERSION;
9 }
10  
11 $class->gateway->client_token->generate($params);
12 }
13  
14 sub gateway {
15 Net::Braintree->configuration->gateway;
16 }
17  
18 1;