File Coverage

blib/lib/WWW/Google/ClientLogin/Constants.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package WWW::Google::ClientLogin::Constants;
2              
3 1     1   630 use strict;
  1         3  
  1         36  
4 1     1   4 use warnings;
  1         3  
  1         28  
5 1     1   68 use parent 'Exporter';
  1         2  
  1         9  
6              
7             my @error_code = qw(
8             BadAuthentication
9             NotVerified
10             TermsNotAgreed
11             CaptchaRequired
12             Unknown
13             AccountDeleted
14             AccountDisabled
15             ServiceDisabled
16             ServiceUnavailable
17             );
18              
19             our @EXPORT = (@error_code);
20             our @EXPORT_OK = ();
21             our %EXPORT_TAGS = (
22             all => [@EXPORT, @EXPORT_OK],
23             error_code => \@error_code,
24             );
25              
26             use constant {
27             # error code
28 1         165 BadAuthentication => 'BadAuthentication',
29             NotVerified => 'NotVerified',
30             TermsNotAgreed => 'TermsNotAgreed',
31             CaptchaRequired => 'CaptchaRequired',
32             Unknown => 'Unknown',
33             AccountDeleted => 'AccountDeleted',
34             AccountDisabled => 'AccountDisabled',
35             ServiceDisabled => 'ServiceDisabled',
36             ServiceUnavailable => 'ServiceUnavailable',
37 1     1   170 };
  1         1  
38              
39             1;
40             __END__