File Coverage

blib/lib/Net/Braintree/ClientToken.pm
Criterion Covered Total %
statement 3 8 37.5
branch 0 2 0.0
condition n/a
subroutine 1 3 33.3
pod 0 2 0.0
total 4 15 26.6


line stmt bran cond sub pod time code
1             package Net::Braintree::ClientToken;
2              
3 1     1   4 use constant DEFAULT_VERSION => "2";
  1         1  
  1         117  
4              
5             sub generate {
6 0     0 0   my ($class, $params) = @_;
7 0 0         if (!exists $params->{version}) {
8 0           $params->{version} = DEFAULT_VERSION;
9             }
10              
11 0           $class->gateway->client_token->generate($params);
12             }
13              
14             sub gateway {
15 0     0 0   Net::Braintree->configuration->gateway;
16             }
17              
18             1;