File Coverage

blib/lib/WebService/Braintree/CreditCard/CardType.pm
Criterion Covered Total %
statement 45 45 100.0
branch n/a
condition n/a
subroutine 15 15 100.0
pod n/a
total 60 60 100.0


line stmt bran cond sub pod time code
1             package WebService::Braintree::CreditCard::CardType;
2             $WebService::Braintree::CreditCard::CardType::VERSION = '0.92';
3 1     1   5 use strict;
  1         2  
  1         28  
4              
5 1     1   4 use constant AmericanExpress => "American Express";
  1         2  
  1         53  
6 1     1   4 use constant CarteBlanche => "Carte Blanche";
  1         2  
  1         41  
7 1     1   4 use constant ChinaUnionPay => "China UnionPay";
  1         2  
  1         33  
8 1     1   5 use constant DinersClub => "Diners Club";
  1         2  
  1         35  
9 1     1   5 use constant Discover => "Discover";
  1         2  
  1         35  
10 1     1   5 use constant JCB => "JCB";
  1         2  
  1         32  
11 1     1   5 use constant Laser => "Laser";
  1         1  
  1         38  
12 1     1   5 use constant Maestro => "Maestro";
  1         1  
  1         37  
13 1     1   5 use constant MasterCard => "MasterCard";
  1         1  
  1         35  
14 1     1   4 use constant Solo => "Solo";
  1         2  
  1         33  
15 1     1   5 use constant Switch => "Switch";
  1         1  
  1         30  
16 1     1   5 use constant Visa => "Visa";
  1         2  
  1         36  
17 1     1   5 use constant Unknown => "Unknown";
  1         1  
  1         53  
18              
19 1         47 use constant All => [
20             AmericanExpress,
21             CarteBlanche,
22             ChinaUnionPay,
23             DinersClub,
24             Discover,
25             JCB,
26             Laser,
27             Maestro,
28             MasterCard,
29             Solo,
30             Switch,
31             Visa,
32             Unknown
33 1     1   5 ];
  1         2  
34             1;