line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::EsEs::AddressCountryName; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
20637
|
use 5.018; |
|
1
|
|
|
|
|
3
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
52
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
8
|
use Venus::Class 'base'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
12
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::EsEs'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.17'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
3
|
|
|
3
|
1
|
1076
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
3
|
|
|
|
|
10
|
return $self->faker->random->select(data_for_address_country_name()); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub data_for_address_country_name { |
25
|
3
|
|
|
3
|
0
|
69
|
state $address_country_name = [ |
26
|
|
|
|
|
|
|
'Afganistán', |
27
|
|
|
|
|
|
|
'Albania', |
28
|
|
|
|
|
|
|
'Alemania', |
29
|
|
|
|
|
|
|
'Andorra', |
30
|
|
|
|
|
|
|
'Angola', |
31
|
|
|
|
|
|
|
'Antigua y Barbuda', |
32
|
|
|
|
|
|
|
'Arabia Saudí', |
33
|
|
|
|
|
|
|
'Argelia', |
34
|
|
|
|
|
|
|
'Argentina', |
35
|
|
|
|
|
|
|
'Armenia', |
36
|
|
|
|
|
|
|
'Australia', |
37
|
|
|
|
|
|
|
'Austria', |
38
|
|
|
|
|
|
|
'Azerbaiyán', |
39
|
|
|
|
|
|
|
'Bahamas', |
40
|
|
|
|
|
|
|
'Bangladés', |
41
|
|
|
|
|
|
|
'Barbados', |
42
|
|
|
|
|
|
|
'Baréin', |
43
|
|
|
|
|
|
|
'Belice', |
44
|
|
|
|
|
|
|
'Benín', |
45
|
|
|
|
|
|
|
'Bielorrusia', |
46
|
|
|
|
|
|
|
'Birmania', |
47
|
|
|
|
|
|
|
'Bolivia', |
48
|
|
|
|
|
|
|
'Bosnia-Herzegovina', |
49
|
|
|
|
|
|
|
'Botsuana', |
50
|
|
|
|
|
|
|
'Brasil', |
51
|
|
|
|
|
|
|
'Brunéi Darusalam', |
52
|
|
|
|
|
|
|
'Bulgaria', |
53
|
|
|
|
|
|
|
'Burkina Faso', |
54
|
|
|
|
|
|
|
'Burundi', |
55
|
|
|
|
|
|
|
'Bután', |
56
|
|
|
|
|
|
|
'Bélgica', |
57
|
|
|
|
|
|
|
'Cabo Verde', |
58
|
|
|
|
|
|
|
'Camboya', |
59
|
|
|
|
|
|
|
'Camerún', |
60
|
|
|
|
|
|
|
'Canadá', |
61
|
|
|
|
|
|
|
'Catar', |
62
|
|
|
|
|
|
|
'Chad', |
63
|
|
|
|
|
|
|
'Chile', |
64
|
|
|
|
|
|
|
'China', |
65
|
|
|
|
|
|
|
'Chipre', |
66
|
|
|
|
|
|
|
'Ciudad del Vaticano', |
67
|
|
|
|
|
|
|
'Colombia', |
68
|
|
|
|
|
|
|
'Comoras', |
69
|
|
|
|
|
|
|
'Congo', |
70
|
|
|
|
|
|
|
'Corea del Norte', |
71
|
|
|
|
|
|
|
'Corea del Sur', |
72
|
|
|
|
|
|
|
'Costa Rica', |
73
|
|
|
|
|
|
|
'Costa de Marfil', |
74
|
|
|
|
|
|
|
'Croacia', |
75
|
|
|
|
|
|
|
'Cuba', |
76
|
|
|
|
|
|
|
'Dinamarca', |
77
|
|
|
|
|
|
|
'Dominica', |
78
|
|
|
|
|
|
|
'Ecuador', |
79
|
|
|
|
|
|
|
'Egipto', |
80
|
|
|
|
|
|
|
'El Salvador', |
81
|
|
|
|
|
|
|
'Emiratos Árabes Unidos', |
82
|
|
|
|
|
|
|
'Eritrea', |
83
|
|
|
|
|
|
|
'Eslovaquia', |
84
|
|
|
|
|
|
|
'Eslovenia', |
85
|
|
|
|
|
|
|
'España', |
86
|
|
|
|
|
|
|
'Estados Unidos de América', |
87
|
|
|
|
|
|
|
'Estonia', |
88
|
|
|
|
|
|
|
'Etiopía', |
89
|
|
|
|
|
|
|
'Filipinas', |
90
|
|
|
|
|
|
|
'Finlandia', |
91
|
|
|
|
|
|
|
'Fiyi', |
92
|
|
|
|
|
|
|
'Francia', |
93
|
|
|
|
|
|
|
'Gabón', |
94
|
|
|
|
|
|
|
'Gambia', |
95
|
|
|
|
|
|
|
'Georgia', |
96
|
|
|
|
|
|
|
'Ghana', |
97
|
|
|
|
|
|
|
'Granada', |
98
|
|
|
|
|
|
|
'Grecia', |
99
|
|
|
|
|
|
|
'Guatemala', |
100
|
|
|
|
|
|
|
'Guinea', |
101
|
|
|
|
|
|
|
'Guinea Ecuatorial', |
102
|
|
|
|
|
|
|
'Guinea-Bisáu', |
103
|
|
|
|
|
|
|
'Guyana', |
104
|
|
|
|
|
|
|
'Haití', |
105
|
|
|
|
|
|
|
'Honduras', |
106
|
|
|
|
|
|
|
'Hungría', |
107
|
|
|
|
|
|
|
'India', |
108
|
|
|
|
|
|
|
'Indonesia', |
109
|
|
|
|
|
|
|
'Irak', |
110
|
|
|
|
|
|
|
'Irlanda', |
111
|
|
|
|
|
|
|
'Irán', |
112
|
|
|
|
|
|
|
'Islandia', |
113
|
|
|
|
|
|
|
'Islas Marshall', |
114
|
|
|
|
|
|
|
'Islas Salomón', |
115
|
|
|
|
|
|
|
'Israel', |
116
|
|
|
|
|
|
|
'Italia', |
117
|
|
|
|
|
|
|
'Jamaica', |
118
|
|
|
|
|
|
|
'Japón', |
119
|
|
|
|
|
|
|
'Jordania', |
120
|
|
|
|
|
|
|
'Kazajistán', |
121
|
|
|
|
|
|
|
'Kenia', |
122
|
|
|
|
|
|
|
'Kirguistán', |
123
|
|
|
|
|
|
|
'Kiribati', |
124
|
|
|
|
|
|
|
'Kuwait', |
125
|
|
|
|
|
|
|
'Laos', |
126
|
|
|
|
|
|
|
'Lesoto', |
127
|
|
|
|
|
|
|
'Letonia', |
128
|
|
|
|
|
|
|
'Liberia', |
129
|
|
|
|
|
|
|
'Libia', |
130
|
|
|
|
|
|
|
'Liechtenstein', |
131
|
|
|
|
|
|
|
'Lituania', |
132
|
|
|
|
|
|
|
'Luxemburgo', |
133
|
|
|
|
|
|
|
'Líbano', |
134
|
|
|
|
|
|
|
'Macedonia', |
135
|
|
|
|
|
|
|
'Madagascar', |
136
|
|
|
|
|
|
|
'Malasia', |
137
|
|
|
|
|
|
|
'Malaui', |
138
|
|
|
|
|
|
|
'Maldivas', |
139
|
|
|
|
|
|
|
'Mali', |
140
|
|
|
|
|
|
|
'Malta', |
141
|
|
|
|
|
|
|
'Marruecos', |
142
|
|
|
|
|
|
|
'Mauricio', |
143
|
|
|
|
|
|
|
'Mauritania', |
144
|
|
|
|
|
|
|
'Micronesia', |
145
|
|
|
|
|
|
|
'Moldavia', |
146
|
|
|
|
|
|
|
'Mongolia', |
147
|
|
|
|
|
|
|
'Montenegro', |
148
|
|
|
|
|
|
|
'Mozambique', |
149
|
|
|
|
|
|
|
'México', |
150
|
|
|
|
|
|
|
'Mónaco', |
151
|
|
|
|
|
|
|
'Namibia', |
152
|
|
|
|
|
|
|
'Nauru', |
153
|
|
|
|
|
|
|
'Nepal', |
154
|
|
|
|
|
|
|
'Nicaragua', |
155
|
|
|
|
|
|
|
'Nigeria', |
156
|
|
|
|
|
|
|
'Noruega', |
157
|
|
|
|
|
|
|
'Nueva Zelanda', |
158
|
|
|
|
|
|
|
'Níger', |
159
|
|
|
|
|
|
|
'Omán', |
160
|
|
|
|
|
|
|
'Pakistán', |
161
|
|
|
|
|
|
|
'Palaos', |
162
|
|
|
|
|
|
|
'Panamá', |
163
|
|
|
|
|
|
|
'Papúa Nueva Guinea', |
164
|
|
|
|
|
|
|
'Paraguay', |
165
|
|
|
|
|
|
|
'Países Bajos', |
166
|
|
|
|
|
|
|
'Perú', |
167
|
|
|
|
|
|
|
'Polonia', |
168
|
|
|
|
|
|
|
'Portugal', |
169
|
|
|
|
|
|
|
'Reino Unido', |
170
|
|
|
|
|
|
|
'Reino Unido de Gran Bretaña e Irlanda del Norte', |
171
|
|
|
|
|
|
|
'República Centroafricana', |
172
|
|
|
|
|
|
|
'República Checa', |
173
|
|
|
|
|
|
|
'República Democrática del Congo', |
174
|
|
|
|
|
|
|
'República Dominicana', |
175
|
|
|
|
|
|
|
'Ruanda', |
176
|
|
|
|
|
|
|
'Rumanía', |
177
|
|
|
|
|
|
|
'Rusia', |
178
|
|
|
|
|
|
|
'Samoa', |
179
|
|
|
|
|
|
|
'San Cristóbal y Nieves', |
180
|
|
|
|
|
|
|
'San Marino', |
181
|
|
|
|
|
|
|
'San Vicente y las Granadinas', |
182
|
|
|
|
|
|
|
'Santa Lucía', |
183
|
|
|
|
|
|
|
'Santo Tomé y Príncipe', |
184
|
|
|
|
|
|
|
'Senegal', |
185
|
|
|
|
|
|
|
'Serbia', |
186
|
|
|
|
|
|
|
'Seychelles', |
187
|
|
|
|
|
|
|
'Sierra Leona', |
188
|
|
|
|
|
|
|
'Singapur', |
189
|
|
|
|
|
|
|
'Siria', |
190
|
|
|
|
|
|
|
'Somalia', |
191
|
|
|
|
|
|
|
'Sri Lanka', |
192
|
|
|
|
|
|
|
'Suazilandia', |
193
|
|
|
|
|
|
|
'Sudáfrica', |
194
|
|
|
|
|
|
|
'Sudán', |
195
|
|
|
|
|
|
|
'Suecia', |
196
|
|
|
|
|
|
|
'Suiza', |
197
|
|
|
|
|
|
|
'Surinam', |
198
|
|
|
|
|
|
|
'Tailandia', |
199
|
|
|
|
|
|
|
'Tanzania', |
200
|
|
|
|
|
|
|
'Tayikistán', |
201
|
|
|
|
|
|
|
'Timor Oriental', |
202
|
|
|
|
|
|
|
'Togo', |
203
|
|
|
|
|
|
|
'Tonga', |
204
|
|
|
|
|
|
|
'Trinidad y Tobago', |
205
|
|
|
|
|
|
|
'Turkmenistán', |
206
|
|
|
|
|
|
|
'Turquía', |
207
|
|
|
|
|
|
|
'Tuvalu', |
208
|
|
|
|
|
|
|
'Túnez', |
209
|
|
|
|
|
|
|
'Ucrania', |
210
|
|
|
|
|
|
|
'Uganda', |
211
|
|
|
|
|
|
|
'Uruguay', |
212
|
|
|
|
|
|
|
'Uzbekistán', |
213
|
|
|
|
|
|
|
'Vanuatu', |
214
|
|
|
|
|
|
|
'Venezuela', |
215
|
|
|
|
|
|
|
'Vietnam', |
216
|
|
|
|
|
|
|
'Yemen', |
217
|
|
|
|
|
|
|
'Yibuti', |
218
|
|
|
|
|
|
|
'Zambia', |
219
|
|
|
|
|
|
|
'Zimbabue', |
220
|
|
|
|
|
|
|
] |
221
|
|
|
|
|
|
|
} |
222
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
1; |
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
|
227
|
|
|
|
|
|
|
=head1 NAME |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
Faker::Plugin::EsEs::AddressCountryName - Address Country Name |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
=cut |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
=head1 ABSTRACT |
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
Address Country Name for Faker |
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
=cut |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
=head1 VERSION |
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
1.17 |
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
=cut |
244
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
=head1 SYNOPSIS |
246
|
|
|
|
|
|
|
|
247
|
|
|
|
|
|
|
package main; |
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressCountryName; |
250
|
|
|
|
|
|
|
|
251
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressCountryName->new; |
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressCountryName") |
254
|
|
|
|
|
|
|
|
255
|
|
|
|
|
|
|
=cut |
256
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
=head1 DESCRIPTION |
258
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
This package provides methods for generating fake data for address country name. |
260
|
|
|
|
|
|
|
|
261
|
|
|
|
|
|
|
=encoding utf8 |
262
|
|
|
|
|
|
|
|
263
|
|
|
|
|
|
|
=cut |
264
|
|
|
|
|
|
|
|
265
|
|
|
|
|
|
|
=head1 INHERITS |
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
This package inherits behaviors from: |
268
|
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
L |
270
|
|
|
|
|
|
|
|
271
|
|
|
|
|
|
|
=cut |
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
=head1 METHODS |
274
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
This package provides the following methods: |
276
|
|
|
|
|
|
|
|
277
|
|
|
|
|
|
|
=cut |
278
|
|
|
|
|
|
|
|
279
|
|
|
|
|
|
|
=head2 execute |
280
|
|
|
|
|
|
|
|
281
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
282
|
|
|
|
|
|
|
|
283
|
|
|
|
|
|
|
The execute method returns a returns a random fake address country name. |
284
|
|
|
|
|
|
|
|
285
|
|
|
|
|
|
|
I> |
286
|
|
|
|
|
|
|
|
287
|
|
|
|
|
|
|
=over 4 |
288
|
|
|
|
|
|
|
|
289
|
|
|
|
|
|
|
=item execute example 1 |
290
|
|
|
|
|
|
|
|
291
|
|
|
|
|
|
|
package main; |
292
|
|
|
|
|
|
|
|
293
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressCountryName; |
294
|
|
|
|
|
|
|
|
295
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressCountryName->new; |
296
|
|
|
|
|
|
|
|
297
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressCountryName") |
298
|
|
|
|
|
|
|
|
299
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
300
|
|
|
|
|
|
|
|
301
|
|
|
|
|
|
|
# 'Francia'; |
302
|
|
|
|
|
|
|
|
303
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
304
|
|
|
|
|
|
|
|
305
|
|
|
|
|
|
|
# 'India'; |
306
|
|
|
|
|
|
|
|
307
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
308
|
|
|
|
|
|
|
|
309
|
|
|
|
|
|
|
# 'Suazilandia'; |
310
|
|
|
|
|
|
|
|
311
|
|
|
|
|
|
|
=back |
312
|
|
|
|
|
|
|
|
313
|
|
|
|
|
|
|
=cut |
314
|
|
|
|
|
|
|
|
315
|
|
|
|
|
|
|
=head2 new |
316
|
|
|
|
|
|
|
|
317
|
|
|
|
|
|
|
new(HashRef $data) (Plugin) |
318
|
|
|
|
|
|
|
|
319
|
|
|
|
|
|
|
The new method returns a new instance of the class. |
320
|
|
|
|
|
|
|
|
321
|
|
|
|
|
|
|
I> |
322
|
|
|
|
|
|
|
|
323
|
|
|
|
|
|
|
=over 4 |
324
|
|
|
|
|
|
|
|
325
|
|
|
|
|
|
|
=item new example 1 |
326
|
|
|
|
|
|
|
|
327
|
|
|
|
|
|
|
package main; |
328
|
|
|
|
|
|
|
|
329
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressCountryName; |
330
|
|
|
|
|
|
|
|
331
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressCountryName->new; |
332
|
|
|
|
|
|
|
|
333
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressCountryName") |
334
|
|
|
|
|
|
|
|
335
|
|
|
|
|
|
|
=back |
336
|
|
|
|
|
|
|
|
337
|
|
|
|
|
|
|
=cut |