line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::EnUs::AddressStateName; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
22802
|
use 5.018; |
|
4
|
|
|
|
|
16
|
|
4
|
|
|
|
|
|
|
|
5
|
4
|
|
|
4
|
|
28
|
use strict; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
110
|
|
6
|
4
|
|
|
4
|
|
20
|
use warnings; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
136
|
|
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
22
|
use Venus::Class 'base'; |
|
4
|
|
|
|
|
20
|
|
|
4
|
|
|
|
|
32
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::EnUs'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.17'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
12
|
|
|
12
|
1
|
1151
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
12
|
|
|
|
|
50
|
return $self->faker->random->select(data_for_address_state_name()); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub data_for_address_state_name { |
25
|
12
|
|
|
12
|
0
|
84
|
state $address_state_name = [ |
26
|
|
|
|
|
|
|
'Alabama', |
27
|
|
|
|
|
|
|
'Alaska', |
28
|
|
|
|
|
|
|
'Arizona', |
29
|
|
|
|
|
|
|
'Arkansas', |
30
|
|
|
|
|
|
|
'California', |
31
|
|
|
|
|
|
|
'Colorado', |
32
|
|
|
|
|
|
|
'Connecticut', |
33
|
|
|
|
|
|
|
'Delaware', |
34
|
|
|
|
|
|
|
'District of Columbia', |
35
|
|
|
|
|
|
|
'Florida', |
36
|
|
|
|
|
|
|
'Georgia', |
37
|
|
|
|
|
|
|
'Hawaii', |
38
|
|
|
|
|
|
|
'Idaho', |
39
|
|
|
|
|
|
|
'Illinois', |
40
|
|
|
|
|
|
|
'Indiana', |
41
|
|
|
|
|
|
|
'Iowa', |
42
|
|
|
|
|
|
|
'Kansas', |
43
|
|
|
|
|
|
|
'Kentucky', |
44
|
|
|
|
|
|
|
'Louisiana', |
45
|
|
|
|
|
|
|
'Maine', |
46
|
|
|
|
|
|
|
'Maryland', |
47
|
|
|
|
|
|
|
'Massachusetts', |
48
|
|
|
|
|
|
|
'Michigan', |
49
|
|
|
|
|
|
|
'Minnesota', |
50
|
|
|
|
|
|
|
'Mississippi', |
51
|
|
|
|
|
|
|
'Missouri', |
52
|
|
|
|
|
|
|
'Montana', |
53
|
|
|
|
|
|
|
'Nebraska', |
54
|
|
|
|
|
|
|
'Nevada', |
55
|
|
|
|
|
|
|
'New Hampshire', |
56
|
|
|
|
|
|
|
'New Jersey', |
57
|
|
|
|
|
|
|
'New Mexico', |
58
|
|
|
|
|
|
|
'New York', |
59
|
|
|
|
|
|
|
'North Carolina', |
60
|
|
|
|
|
|
|
'North Dakota', |
61
|
|
|
|
|
|
|
'Ohio', |
62
|
|
|
|
|
|
|
'Oklahoma', |
63
|
|
|
|
|
|
|
'Oregon', |
64
|
|
|
|
|
|
|
'Pennsylvania', |
65
|
|
|
|
|
|
|
'Rhode Island', |
66
|
|
|
|
|
|
|
'South Carolina', |
67
|
|
|
|
|
|
|
'South Dakota', |
68
|
|
|
|
|
|
|
'Tennessee', |
69
|
|
|
|
|
|
|
'Texas', |
70
|
|
|
|
|
|
|
'Utah', |
71
|
|
|
|
|
|
|
'Vermont', |
72
|
|
|
|
|
|
|
'Virginia', |
73
|
|
|
|
|
|
|
'Washington', |
74
|
|
|
|
|
|
|
'West Virginia', |
75
|
|
|
|
|
|
|
'Wisconsin', |
76
|
|
|
|
|
|
|
'Wyoming', |
77
|
|
|
|
|
|
|
] |
78
|
|
|
|
|
|
|
} |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
1; |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 NAME |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Faker::Plugin::EnUs::AddressStateName - Address State Name |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=cut |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 ABSTRACT |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Address State Name for Faker |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=cut |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 VERSION |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
1.17 |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=cut |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head1 SYNOPSIS |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
package main; |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
use Faker::Plugin::EnUs::AddressStateName; |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::AddressStateName->new; |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::AddressStateName") |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=cut |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head1 DESCRIPTION |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
This package provides methods for generating fake data for address state name. |
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 name. |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
I> |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=over 4 |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
=item execute example 1 |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
package main; |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
use Faker::Plugin::EnUs::AddressStateName; |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::AddressStateName->new; |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::AddressStateName") |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
# "Kentucky"; |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
# "Massachusetts"; |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
# "Texas"; |
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::AddressStateName; |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::AddressStateName->new; |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::AddressStateName") |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
=back |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
=cut |