line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::EsEs::AddressStateName; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
20954
|
use 5.018; |
|
2
|
|
|
|
|
7
|
|
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
9
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
41
|
|
6
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
68
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
11
|
use Venus::Class 'base'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
12
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::EsEs'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.17'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
6
|
|
|
6
|
1
|
1114
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
6
|
|
|
|
|
20
|
return $self->faker->random->select(data_for_address_state_name()); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub data_for_address_state_name { |
25
|
6
|
|
|
6
|
0
|
45
|
state $address_state_name = [ |
26
|
|
|
|
|
|
|
'A Coruña', |
27
|
|
|
|
|
|
|
'Álava', |
28
|
|
|
|
|
|
|
'Albacete', |
29
|
|
|
|
|
|
|
'Alicante', |
30
|
|
|
|
|
|
|
'Almería', |
31
|
|
|
|
|
|
|
'Asturias', |
32
|
|
|
|
|
|
|
'Ávila', |
33
|
|
|
|
|
|
|
'Badajoz', |
34
|
|
|
|
|
|
|
'Barcelona', |
35
|
|
|
|
|
|
|
'Burgos', |
36
|
|
|
|
|
|
|
'Cáceres', |
37
|
|
|
|
|
|
|
'Cádiz', |
38
|
|
|
|
|
|
|
'Cantabria', |
39
|
|
|
|
|
|
|
'Castellón', |
40
|
|
|
|
|
|
|
'Ceuta', |
41
|
|
|
|
|
|
|
'Ciudad Real', |
42
|
|
|
|
|
|
|
'Cuenca', |
43
|
|
|
|
|
|
|
'Córdoba', |
44
|
|
|
|
|
|
|
'Girona', |
45
|
|
|
|
|
|
|
'Granada', |
46
|
|
|
|
|
|
|
'Guadalajara', |
47
|
|
|
|
|
|
|
'Guipuzkoa', |
48
|
|
|
|
|
|
|
'Huelva', |
49
|
|
|
|
|
|
|
'Huesca', |
50
|
|
|
|
|
|
|
'Illes Balears', |
51
|
|
|
|
|
|
|
'Jaén', |
52
|
|
|
|
|
|
|
'La Rioja', |
53
|
|
|
|
|
|
|
'Las Palmas', |
54
|
|
|
|
|
|
|
'León', |
55
|
|
|
|
|
|
|
'Lleida', |
56
|
|
|
|
|
|
|
'Lugo', |
57
|
|
|
|
|
|
|
'Málaga', |
58
|
|
|
|
|
|
|
'Madrid', |
59
|
|
|
|
|
|
|
'Melilla', |
60
|
|
|
|
|
|
|
'Murcia', |
61
|
|
|
|
|
|
|
'Navarra', |
62
|
|
|
|
|
|
|
'Ourense', |
63
|
|
|
|
|
|
|
'Palencia', |
64
|
|
|
|
|
|
|
'Pontevedra', |
65
|
|
|
|
|
|
|
'Salamanca', |
66
|
|
|
|
|
|
|
'Segovia', |
67
|
|
|
|
|
|
|
'Sevilla', |
68
|
|
|
|
|
|
|
'Soria', |
69
|
|
|
|
|
|
|
'Santa Cruz de Tenerife', |
70
|
|
|
|
|
|
|
'Tarragona', |
71
|
|
|
|
|
|
|
'Teruel', |
72
|
|
|
|
|
|
|
'Toledo', |
73
|
|
|
|
|
|
|
'Valencia', |
74
|
|
|
|
|
|
|
'Valladolid', |
75
|
|
|
|
|
|
|
'Vizcaya', |
76
|
|
|
|
|
|
|
'Zamora', |
77
|
|
|
|
|
|
|
'Zaragoza', |
78
|
|
|
|
|
|
|
] |
79
|
|
|
|
|
|
|
} |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
1; |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 NAME |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
Faker::Plugin::EsEs::AddressStateName - Address State Name |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=cut |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head1 ABSTRACT |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Address State Name for Faker |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=cut |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head1 VERSION |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
1.17 |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=cut |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head1 SYNOPSIS |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
package main; |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressStateName; |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressStateName->new; |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressStateName") |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=cut |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head1 DESCRIPTION |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
This package provides methods for generating fake data for address state name. |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=encoding utf8 |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=cut |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=head1 INHERITS |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
This package inherits behaviors from: |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
L |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=cut |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
=head1 METHODS |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
This package provides the following methods: |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=cut |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
=head2 execute |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
The execute method returns a returns a random fake address state name. |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
I> |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
=over 4 |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
=item execute example 1 |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
package main; |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressStateName; |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressStateName->new; |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressStateName") |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
# 'Córdoba'; |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
# 'Guipuzkoa'; |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
# 'Tarragona'; |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
=back |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
=cut |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
=head2 new |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
new(HashRef $data) (Plugin) |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
The new method returns a new instance of the class. |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
I> |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
=over 4 |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
=item new example 1 |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
package main; |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressStateName; |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressStateName->new; |
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressStateName") |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
=back |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
=cut |