| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Faker::Plugin::EnUs::AddressStateAbbr; |
|
2
|
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
41007
|
use 5.018; |
|
|
4
|
|
|
|
|
16
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
4
|
|
|
4
|
|
24
|
use strict; |
|
|
4
|
|
|
|
|
8
|
|
|
|
4
|
|
|
|
|
93
|
|
|
6
|
4
|
|
|
4
|
|
20
|
use warnings; |
|
|
4
|
|
|
|
|
9
|
|
|
|
4
|
|
|
|
|
120
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
21
|
use Venus::Class 'base'; |
|
|
4
|
|
|
|
|
7
|
|
|
|
4
|
|
|
|
|
47
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::EnUs'; |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.19'; |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
|
19
|
12
|
|
|
12
|
1
|
1099
|
my ($self, $data) = @_; |
|
20
|
|
|
|
|
|
|
|
|
21
|
12
|
|
|
|
|
42
|
return $self->faker->random->select(data_for_address_state_abbr()); |
|
22
|
|
|
|
|
|
|
} |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub data_for_address_state_abbr { |
|
25
|
12
|
|
|
12
|
0
|
81
|
state $address_state_abbr = [ |
|
26
|
|
|
|
|
|
|
'AK', |
|
27
|
|
|
|
|
|
|
'AL', |
|
28
|
|
|
|
|
|
|
'AR', |
|
29
|
|
|
|
|
|
|
'AZ', |
|
30
|
|
|
|
|
|
|
'CA', |
|
31
|
|
|
|
|
|
|
'CO', |
|
32
|
|
|
|
|
|
|
'CT', |
|
33
|
|
|
|
|
|
|
'DC', |
|
34
|
|
|
|
|
|
|
'DE', |
|
35
|
|
|
|
|
|
|
'FL', |
|
36
|
|
|
|
|
|
|
'GA', |
|
37
|
|
|
|
|
|
|
'HI', |
|
38
|
|
|
|
|
|
|
'IA', |
|
39
|
|
|
|
|
|
|
'ID', |
|
40
|
|
|
|
|
|
|
'IL', |
|
41
|
|
|
|
|
|
|
'IN', |
|
42
|
|
|
|
|
|
|
'KS', |
|
43
|
|
|
|
|
|
|
'KY', |
|
44
|
|
|
|
|
|
|
'LA', |
|
45
|
|
|
|
|
|
|
'MA', |
|
46
|
|
|
|
|
|
|
'MD', |
|
47
|
|
|
|
|
|
|
'ME', |
|
48
|
|
|
|
|
|
|
'MI', |
|
49
|
|
|
|
|
|
|
'MN', |
|
50
|
|
|
|
|
|
|
'MO', |
|
51
|
|
|
|
|
|
|
'MS', |
|
52
|
|
|
|
|
|
|
'MT', |
|
53
|
|
|
|
|
|
|
'NC', |
|
54
|
|
|
|
|
|
|
'ND', |
|
55
|
|
|
|
|
|
|
'NE', |
|
56
|
|
|
|
|
|
|
'NH', |
|
57
|
|
|
|
|
|
|
'NJ', |
|
58
|
|
|
|
|
|
|
'NM', |
|
59
|
|
|
|
|
|
|
'NV', |
|
60
|
|
|
|
|
|
|
'NY', |
|
61
|
|
|
|
|
|
|
'OH', |
|
62
|
|
|
|
|
|
|
'OK', |
|
63
|
|
|
|
|
|
|
'OR', |
|
64
|
|
|
|
|
|
|
'PA', |
|
65
|
|
|
|
|
|
|
'RI', |
|
66
|
|
|
|
|
|
|
'SC', |
|
67
|
|
|
|
|
|
|
'SD', |
|
68
|
|
|
|
|
|
|
'TN', |
|
69
|
|
|
|
|
|
|
'TX', |
|
70
|
|
|
|
|
|
|
'UT', |
|
71
|
|
|
|
|
|
|
'VA', |
|
72
|
|
|
|
|
|
|
'VT', |
|
73
|
|
|
|
|
|
|
'WA', |
|
74
|
|
|
|
|
|
|
'WI', |
|
75
|
|
|
|
|
|
|
'WV', |
|
76
|
|
|
|
|
|
|
'WY', |
|
77
|
|
|
|
|
|
|
] |
|
78
|
|
|
|
|
|
|
} |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
1; |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 NAME |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Faker::Plugin::EnUs::AddressStateAbbr - Address State Abbr |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=cut |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 ABSTRACT |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Address State Abbr for Faker |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=cut |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 VERSION |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
1.19 |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=cut |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
package main; |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
use Faker::Plugin::EnUs::AddressStateAbbr; |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::AddressStateAbbr->new; |
|
109
|
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::AddressStateAbbr") |
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=cut |
|
113
|
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
This package provides methods for generating fake data for address state abbr. |
|
117
|
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=encoding utf8 |
|
119
|
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=cut |
|
121
|
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head1 INHERITS |
|
123
|
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
This package inherits behaviors from: |
|
125
|
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
L |
|
127
|
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=cut |
|
129
|
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=head1 METHODS |
|
131
|
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
This package provides the following methods: |
|
133
|
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=cut |
|
135
|
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head2 execute |
|
137
|
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
|
139
|
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
The execute method returns a returns a random fake address state abbr. |
|
141
|
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
I> |
|
143
|
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=over 4 |
|
145
|
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
=item execute example 1 |
|
147
|
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
package main; |
|
149
|
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
use Faker::Plugin::EnUs::AddressStateAbbr; |
|
151
|
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::AddressStateAbbr->new; |
|
153
|
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::AddressStateAbbr") |
|
155
|
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
|
157
|
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
# "KY"; |
|
159
|
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
|
161
|
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
# "ME"; |
|
163
|
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
|
165
|
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
# "TX"; |
|
167
|
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=back |
|
169
|
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
=cut |
|
171
|
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=head2 new |
|
173
|
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
new(HashRef $data) (Plugin) |
|
175
|
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
The new method returns a new instance of the class. |
|
177
|
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
I> |
|
179
|
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
=over 4 |
|
181
|
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
=item new example 1 |
|
183
|
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
package main; |
|
185
|
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
use Faker::Plugin::EnUs::AddressStateAbbr; |
|
187
|
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::AddressStateAbbr->new; |
|
189
|
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::AddressStateAbbr") |
|
191
|
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
=back |
|
193
|
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
=cut |
|
195
|
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
=head1 AUTHORS |
|
197
|
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
Awncorp, C |
|
199
|
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
=cut |
|
201
|
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
=head1 LICENSE |
|
203
|
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
Copyright (C) 2000, Al Newkirk. |
|
205
|
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
This program is free software, you can redistribute it and/or modify it under |
|
207
|
|
|
|
|
|
|
the terms of the Apache license version 2.0. |
|
208
|
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
=cut |