File Coverage

lib/WebService/Braintree/CreditCard/CardType.pm
Criterion Covered Total %
statement 47 47 100.0
branch n/a
condition n/a
subroutine 16 16 100.0
pod n/a
total 63 63 100.0


line stmt bran cond sub pod time code
1             package WebService::Braintree::CreditCard::CardType;
2             $WebService::Braintree::CreditCard::CardType::VERSION = '0.94';
3 20     20   264 use 5.010_001;
  20         52  
4 20     20   93 use strictures 1;
  20         97  
  20         632  
5              
6 20     20   1575 use constant AmericanExpress => "American Express";
  20         42  
  20         1218  
7 20     20   109 use constant CarteBlanche => "Carte Blanche";
  20         42  
  20         982  
8 20     20   97 use constant ChinaUnionPay => "China UnionPay";
  20         29  
  20         783  
9 20     20   94 use constant DinersClub => "Diners Club";
  20         35  
  20         773  
10 20     20   99 use constant Discover => "Discover";
  20         32  
  20         748  
11 20     20   94 use constant JCB => "JCB";
  20         33  
  20         820  
12 20     20   101 use constant Laser => "Laser";
  20         46  
  20         802  
13 20     20   94 use constant Maestro => "Maestro";
  20         35  
  20         746  
14 20     20   95 use constant MasterCard => "MasterCard";
  20         28  
  20         692  
15 20     20   89 use constant Solo => "Solo";
  20         44  
  20         704  
16 20     20   95 use constant Switch => "Switch";
  20         30  
  20         727  
17 20     20   92 use constant Visa => "Visa";
  20         27  
  20         764  
18 20     20   94 use constant Unknown => "Unknown";
  20         36  
  20         1181  
19              
20 20         980 use constant All => [
21             AmericanExpress,
22             CarteBlanche,
23             ChinaUnionPay,
24             DinersClub,
25             Discover,
26             JCB,
27             Laser,
28             Maestro,
29             MasterCard,
30             Solo,
31             Switch,
32             Visa,
33             Unknown
34 20     20   104 ];
  20         29  
35              
36             1;
37             __END__