line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::EnUs::AddressCountryName; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
22310
|
use 5.018; |
|
2
|
|
|
|
|
9
|
|
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
14
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
54
|
|
6
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
63
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
10
|
use Venus::Class 'base'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
22
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::EnUs'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.18'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
6
|
|
|
6
|
1
|
1140
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
6
|
|
|
|
|
24
|
return $self->faker->random->select(data_for_address_country_name()); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub data_for_address_country_name { |
25
|
6
|
|
|
6
|
0
|
127
|
state $address_country_name = [ |
26
|
|
|
|
|
|
|
'Afghanistan', |
27
|
|
|
|
|
|
|
'Albania', |
28
|
|
|
|
|
|
|
'Algeria', |
29
|
|
|
|
|
|
|
'American Samoa', |
30
|
|
|
|
|
|
|
'Andorra', |
31
|
|
|
|
|
|
|
'Angola', |
32
|
|
|
|
|
|
|
'Anguilla', |
33
|
|
|
|
|
|
|
'Antarctica (the territory South of 60 deg S)', |
34
|
|
|
|
|
|
|
'Antigua and Barbuda', |
35
|
|
|
|
|
|
|
'Argentina', |
36
|
|
|
|
|
|
|
'Armenia', |
37
|
|
|
|
|
|
|
'Aruba', |
38
|
|
|
|
|
|
|
'Australia', |
39
|
|
|
|
|
|
|
'Austria', |
40
|
|
|
|
|
|
|
'Azerbaijan', |
41
|
|
|
|
|
|
|
'Bahamas', |
42
|
|
|
|
|
|
|
'Bahrain', |
43
|
|
|
|
|
|
|
'Bangladesh', |
44
|
|
|
|
|
|
|
'Barbados', |
45
|
|
|
|
|
|
|
'Belarus', |
46
|
|
|
|
|
|
|
'Belgium', |
47
|
|
|
|
|
|
|
'Belize', |
48
|
|
|
|
|
|
|
'Benin', |
49
|
|
|
|
|
|
|
'Bermuda', |
50
|
|
|
|
|
|
|
'Bhutan', |
51
|
|
|
|
|
|
|
'Bolivia', |
52
|
|
|
|
|
|
|
'Bosnia and Herzegovina', |
53
|
|
|
|
|
|
|
'Botswana', |
54
|
|
|
|
|
|
|
'Bouvet Island (Bouvetoya)', |
55
|
|
|
|
|
|
|
'Brazil', |
56
|
|
|
|
|
|
|
'British Indian Ocean Territory (Chagos Archipelago)', |
57
|
|
|
|
|
|
|
'British Virgin Islands', |
58
|
|
|
|
|
|
|
'Brunei Darussalam', |
59
|
|
|
|
|
|
|
'Bulgaria', |
60
|
|
|
|
|
|
|
'Burkina Faso', |
61
|
|
|
|
|
|
|
'Burundi', |
62
|
|
|
|
|
|
|
'Cambodia', |
63
|
|
|
|
|
|
|
'Cameroon', |
64
|
|
|
|
|
|
|
'Canada', |
65
|
|
|
|
|
|
|
'Cape Verde', |
66
|
|
|
|
|
|
|
'Cayman Islands', |
67
|
|
|
|
|
|
|
'Central African Republic', |
68
|
|
|
|
|
|
|
'Chad', |
69
|
|
|
|
|
|
|
'Chile', |
70
|
|
|
|
|
|
|
'China', |
71
|
|
|
|
|
|
|
'Christmas Island', |
72
|
|
|
|
|
|
|
'Cocos (Keeling) Islands', |
73
|
|
|
|
|
|
|
'Colombia', |
74
|
|
|
|
|
|
|
'Comoros', |
75
|
|
|
|
|
|
|
'Congo', |
76
|
|
|
|
|
|
|
'Cook Islands', |
77
|
|
|
|
|
|
|
'Costa Rica', |
78
|
|
|
|
|
|
|
'Cote d\'Ivoire', |
79
|
|
|
|
|
|
|
'Croatia', |
80
|
|
|
|
|
|
|
'Cuba', |
81
|
|
|
|
|
|
|
'Cyprus', |
82
|
|
|
|
|
|
|
'Czech Republic', |
83
|
|
|
|
|
|
|
'Denmark', |
84
|
|
|
|
|
|
|
'Djibouti', |
85
|
|
|
|
|
|
|
'Dominica', |
86
|
|
|
|
|
|
|
'Dominican Republic', |
87
|
|
|
|
|
|
|
'Ecuador', |
88
|
|
|
|
|
|
|
'Egypt', |
89
|
|
|
|
|
|
|
'El Salvador', |
90
|
|
|
|
|
|
|
'Equatorial Guinea', |
91
|
|
|
|
|
|
|
'Eritrea', |
92
|
|
|
|
|
|
|
'Estonia', |
93
|
|
|
|
|
|
|
'Ethiopia', |
94
|
|
|
|
|
|
|
'Faroe Islands', |
95
|
|
|
|
|
|
|
'Falkland Islands (Malvinas)', |
96
|
|
|
|
|
|
|
'Fiji', |
97
|
|
|
|
|
|
|
'Finland', |
98
|
|
|
|
|
|
|
'France', |
99
|
|
|
|
|
|
|
'French Guiana', |
100
|
|
|
|
|
|
|
'French Polynesia', |
101
|
|
|
|
|
|
|
'French Southern Territories', |
102
|
|
|
|
|
|
|
'Gabon', |
103
|
|
|
|
|
|
|
'Gambia', |
104
|
|
|
|
|
|
|
'Georgia', |
105
|
|
|
|
|
|
|
'Germany', |
106
|
|
|
|
|
|
|
'Ghana', |
107
|
|
|
|
|
|
|
'Gibraltar', |
108
|
|
|
|
|
|
|
'Greece', |
109
|
|
|
|
|
|
|
'Greenland', |
110
|
|
|
|
|
|
|
'Grenada', |
111
|
|
|
|
|
|
|
'Guadeloupe', |
112
|
|
|
|
|
|
|
'Guam', |
113
|
|
|
|
|
|
|
'Guatemala', |
114
|
|
|
|
|
|
|
'Guernsey', |
115
|
|
|
|
|
|
|
'Guinea', |
116
|
|
|
|
|
|
|
'Guinea-Bissau', |
117
|
|
|
|
|
|
|
'Guyana', |
118
|
|
|
|
|
|
|
'Haiti', |
119
|
|
|
|
|
|
|
'Heard Island and McDonald Islands', |
120
|
|
|
|
|
|
|
'Holy See (Vatican City State)', |
121
|
|
|
|
|
|
|
'Honduras', |
122
|
|
|
|
|
|
|
'Hong Kong', |
123
|
|
|
|
|
|
|
'Hungary', |
124
|
|
|
|
|
|
|
'Iceland', |
125
|
|
|
|
|
|
|
'India', |
126
|
|
|
|
|
|
|
'Indonesia', |
127
|
|
|
|
|
|
|
'Iran', |
128
|
|
|
|
|
|
|
'Iraq', |
129
|
|
|
|
|
|
|
'Ireland', |
130
|
|
|
|
|
|
|
'Isle of Man', |
131
|
|
|
|
|
|
|
'Israel', |
132
|
|
|
|
|
|
|
'Italy', |
133
|
|
|
|
|
|
|
'Jamaica', |
134
|
|
|
|
|
|
|
'Japan', |
135
|
|
|
|
|
|
|
'Jersey', |
136
|
|
|
|
|
|
|
'Jordan', |
137
|
|
|
|
|
|
|
'Kazakhstan', |
138
|
|
|
|
|
|
|
'Kenya', |
139
|
|
|
|
|
|
|
'Kiribati', |
140
|
|
|
|
|
|
|
'Korea', |
141
|
|
|
|
|
|
|
'Korea', |
142
|
|
|
|
|
|
|
'Kuwait', |
143
|
|
|
|
|
|
|
'Kyrgyz Republic', |
144
|
|
|
|
|
|
|
'Lao People\'s Democratic Republic', |
145
|
|
|
|
|
|
|
'Latvia', |
146
|
|
|
|
|
|
|
'Lebanon', |
147
|
|
|
|
|
|
|
'Lesotho', |
148
|
|
|
|
|
|
|
'Liberia', |
149
|
|
|
|
|
|
|
'Libyan Arab Jamahiriya', |
150
|
|
|
|
|
|
|
'Liechtenstein', |
151
|
|
|
|
|
|
|
'Lithuania', |
152
|
|
|
|
|
|
|
'Luxembourg', |
153
|
|
|
|
|
|
|
'Macao', |
154
|
|
|
|
|
|
|
'Macedonia', |
155
|
|
|
|
|
|
|
'Madagascar', |
156
|
|
|
|
|
|
|
'Malawi', |
157
|
|
|
|
|
|
|
'Malaysia', |
158
|
|
|
|
|
|
|
'Maldives', |
159
|
|
|
|
|
|
|
'Mali', |
160
|
|
|
|
|
|
|
'Malta', |
161
|
|
|
|
|
|
|
'Marshall Islands', |
162
|
|
|
|
|
|
|
'Martinique', |
163
|
|
|
|
|
|
|
'Mauritania', |
164
|
|
|
|
|
|
|
'Mauritius', |
165
|
|
|
|
|
|
|
'Mayotte', |
166
|
|
|
|
|
|
|
'Mexico', |
167
|
|
|
|
|
|
|
'Micronesia', |
168
|
|
|
|
|
|
|
'Moldova', |
169
|
|
|
|
|
|
|
'Monaco', |
170
|
|
|
|
|
|
|
'Mongolia', |
171
|
|
|
|
|
|
|
'Montenegro', |
172
|
|
|
|
|
|
|
'Montserrat', |
173
|
|
|
|
|
|
|
'Morocco', |
174
|
|
|
|
|
|
|
'Mozambique', |
175
|
|
|
|
|
|
|
'Myanmar', |
176
|
|
|
|
|
|
|
'Namibia', |
177
|
|
|
|
|
|
|
'Nauru', |
178
|
|
|
|
|
|
|
'Nepal', |
179
|
|
|
|
|
|
|
'Netherlands Antilles', |
180
|
|
|
|
|
|
|
'Netherlands', |
181
|
|
|
|
|
|
|
'New Caledonia', |
182
|
|
|
|
|
|
|
'New Zealand', |
183
|
|
|
|
|
|
|
'Nicaragua', |
184
|
|
|
|
|
|
|
'Niger', |
185
|
|
|
|
|
|
|
'Nigeria', |
186
|
|
|
|
|
|
|
'Niue', |
187
|
|
|
|
|
|
|
'Norfolk Island', |
188
|
|
|
|
|
|
|
'Northern Mariana Islands', |
189
|
|
|
|
|
|
|
'Norway', |
190
|
|
|
|
|
|
|
'Oman', |
191
|
|
|
|
|
|
|
'Pakistan', |
192
|
|
|
|
|
|
|
'Palau', |
193
|
|
|
|
|
|
|
'Palestinian Territories', |
194
|
|
|
|
|
|
|
'Panama', |
195
|
|
|
|
|
|
|
'Papua New Guinea', |
196
|
|
|
|
|
|
|
'Paraguay', |
197
|
|
|
|
|
|
|
'Peru', |
198
|
|
|
|
|
|
|
'Philippines', |
199
|
|
|
|
|
|
|
'Pitcairn Islands', |
200
|
|
|
|
|
|
|
'Poland', |
201
|
|
|
|
|
|
|
'Portugal', |
202
|
|
|
|
|
|
|
'Puerto Rico', |
203
|
|
|
|
|
|
|
'Qatar', |
204
|
|
|
|
|
|
|
'Reunion', |
205
|
|
|
|
|
|
|
'Romania', |
206
|
|
|
|
|
|
|
'Russian Federation', |
207
|
|
|
|
|
|
|
'Rwanda', |
208
|
|
|
|
|
|
|
'Saint Barthelemy', |
209
|
|
|
|
|
|
|
'Saint Helena', |
210
|
|
|
|
|
|
|
'Saint Kitts and Nevis', |
211
|
|
|
|
|
|
|
'Saint Lucia', |
212
|
|
|
|
|
|
|
'Saint Martin', |
213
|
|
|
|
|
|
|
'Saint Pierre and Miquelon', |
214
|
|
|
|
|
|
|
'Saint Vincent and the Grenadines', |
215
|
|
|
|
|
|
|
'Samoa', |
216
|
|
|
|
|
|
|
'San Marino', |
217
|
|
|
|
|
|
|
'Sao Tome and Principe', |
218
|
|
|
|
|
|
|
'Saudi Arabia', |
219
|
|
|
|
|
|
|
'Senegal', |
220
|
|
|
|
|
|
|
'Serbia', |
221
|
|
|
|
|
|
|
'Seychelles', |
222
|
|
|
|
|
|
|
'Sierra Leone', |
223
|
|
|
|
|
|
|
'Singapore', |
224
|
|
|
|
|
|
|
'Slovakia (Slovak Republic)', |
225
|
|
|
|
|
|
|
'Slovenia', |
226
|
|
|
|
|
|
|
'Solomon Islands', |
227
|
|
|
|
|
|
|
'Somalia', |
228
|
|
|
|
|
|
|
'South Africa', |
229
|
|
|
|
|
|
|
'South Georgia and the South Sandwich Islands', |
230
|
|
|
|
|
|
|
'Spain', |
231
|
|
|
|
|
|
|
'Sri Lanka', |
232
|
|
|
|
|
|
|
'Sudan', |
233
|
|
|
|
|
|
|
'Suriname', |
234
|
|
|
|
|
|
|
'Svalbard & Jan Mayen Islands', |
235
|
|
|
|
|
|
|
'Swaziland', |
236
|
|
|
|
|
|
|
'Sweden', |
237
|
|
|
|
|
|
|
'Switzerland', |
238
|
|
|
|
|
|
|
'Syrian Arab Republic', |
239
|
|
|
|
|
|
|
'Taiwan', |
240
|
|
|
|
|
|
|
'Tajikistan', |
241
|
|
|
|
|
|
|
'Tanzania', |
242
|
|
|
|
|
|
|
'Thailand', |
243
|
|
|
|
|
|
|
'Timor-Leste', |
244
|
|
|
|
|
|
|
'Togo', |
245
|
|
|
|
|
|
|
'Tokelau', |
246
|
|
|
|
|
|
|
'Tonga', |
247
|
|
|
|
|
|
|
'Trinidad and Tobago', |
248
|
|
|
|
|
|
|
'Tunisia', |
249
|
|
|
|
|
|
|
'Turkey', |
250
|
|
|
|
|
|
|
'Turkmenistan', |
251
|
|
|
|
|
|
|
'Turks and Caicos Islands', |
252
|
|
|
|
|
|
|
'Tuvalu', |
253
|
|
|
|
|
|
|
'Uganda', |
254
|
|
|
|
|
|
|
'Ukraine', |
255
|
|
|
|
|
|
|
'United Arab Emirates', |
256
|
|
|
|
|
|
|
'United Kingdom', |
257
|
|
|
|
|
|
|
'United States of America', |
258
|
|
|
|
|
|
|
'United States Minor Outlying Islands', |
259
|
|
|
|
|
|
|
'United States Virgin Islands', |
260
|
|
|
|
|
|
|
'Uruguay', |
261
|
|
|
|
|
|
|
'Uzbekistan', |
262
|
|
|
|
|
|
|
'Vanuatu', |
263
|
|
|
|
|
|
|
'Venezuela', |
264
|
|
|
|
|
|
|
'Vietnam', |
265
|
|
|
|
|
|
|
'Wallis and Futuna', |
266
|
|
|
|
|
|
|
'Western Sahara', |
267
|
|
|
|
|
|
|
'Yemen', |
268
|
|
|
|
|
|
|
'Zambia', |
269
|
|
|
|
|
|
|
'Zimbabwe', |
270
|
|
|
|
|
|
|
] |
271
|
|
|
|
|
|
|
} |
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
1; |
274
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
|
276
|
|
|
|
|
|
|
|
277
|
|
|
|
|
|
|
=head1 NAME |
278
|
|
|
|
|
|
|
|
279
|
|
|
|
|
|
|
Faker::Plugin::EnUs::AddressCountryName - Address Country Name |
280
|
|
|
|
|
|
|
|
281
|
|
|
|
|
|
|
=cut |
282
|
|
|
|
|
|
|
|
283
|
|
|
|
|
|
|
=head1 ABSTRACT |
284
|
|
|
|
|
|
|
|
285
|
|
|
|
|
|
|
Address Country Name for Faker |
286
|
|
|
|
|
|
|
|
287
|
|
|
|
|
|
|
=cut |
288
|
|
|
|
|
|
|
|
289
|
|
|
|
|
|
|
=head1 VERSION |
290
|
|
|
|
|
|
|
|
291
|
|
|
|
|
|
|
1.18 |
292
|
|
|
|
|
|
|
|
293
|
|
|
|
|
|
|
=cut |
294
|
|
|
|
|
|
|
|
295
|
|
|
|
|
|
|
=head1 SYNOPSIS |
296
|
|
|
|
|
|
|
|
297
|
|
|
|
|
|
|
package main; |
298
|
|
|
|
|
|
|
|
299
|
|
|
|
|
|
|
use Faker::Plugin::EnUs::AddressCountryName; |
300
|
|
|
|
|
|
|
|
301
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::AddressCountryName->new; |
302
|
|
|
|
|
|
|
|
303
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::AddressCountryName") |
304
|
|
|
|
|
|
|
|
305
|
|
|
|
|
|
|
=cut |
306
|
|
|
|
|
|
|
|
307
|
|
|
|
|
|
|
=head1 DESCRIPTION |
308
|
|
|
|
|
|
|
|
309
|
|
|
|
|
|
|
This package provides methods for generating fake data for address country name. |
310
|
|
|
|
|
|
|
|
311
|
|
|
|
|
|
|
=encoding utf8 |
312
|
|
|
|
|
|
|
|
313
|
|
|
|
|
|
|
=cut |
314
|
|
|
|
|
|
|
|
315
|
|
|
|
|
|
|
=head1 INHERITS |
316
|
|
|
|
|
|
|
|
317
|
|
|
|
|
|
|
This package inherits behaviors from: |
318
|
|
|
|
|
|
|
|
319
|
|
|
|
|
|
|
L |
320
|
|
|
|
|
|
|
|
321
|
|
|
|
|
|
|
=cut |
322
|
|
|
|
|
|
|
|
323
|
|
|
|
|
|
|
=head1 METHODS |
324
|
|
|
|
|
|
|
|
325
|
|
|
|
|
|
|
This package provides the following methods: |
326
|
|
|
|
|
|
|
|
327
|
|
|
|
|
|
|
=cut |
328
|
|
|
|
|
|
|
|
329
|
|
|
|
|
|
|
=head2 execute |
330
|
|
|
|
|
|
|
|
331
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
332
|
|
|
|
|
|
|
|
333
|
|
|
|
|
|
|
The execute method returns a returns a random fake address country name. |
334
|
|
|
|
|
|
|
|
335
|
|
|
|
|
|
|
I> |
336
|
|
|
|
|
|
|
|
337
|
|
|
|
|
|
|
=over 4 |
338
|
|
|
|
|
|
|
|
339
|
|
|
|
|
|
|
=item execute example 1 |
340
|
|
|
|
|
|
|
|
341
|
|
|
|
|
|
|
package main; |
342
|
|
|
|
|
|
|
|
343
|
|
|
|
|
|
|
use Faker::Plugin::EnUs::AddressCountryName; |
344
|
|
|
|
|
|
|
|
345
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::AddressCountryName->new; |
346
|
|
|
|
|
|
|
|
347
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::AddressCountryName") |
348
|
|
|
|
|
|
|
|
349
|
|
|
|
|
|
|
# my $result = opluginresult->execute; |
350
|
|
|
|
|
|
|
|
351
|
|
|
|
|
|
|
# "Greenland" |
352
|
|
|
|
|
|
|
|
353
|
|
|
|
|
|
|
# my $result = opluginresult->execute; |
354
|
|
|
|
|
|
|
|
355
|
|
|
|
|
|
|
# "Ireland" |
356
|
|
|
|
|
|
|
|
357
|
|
|
|
|
|
|
# my $result = opluginresult->execute; |
358
|
|
|
|
|
|
|
|
359
|
|
|
|
|
|
|
# "Svalbard & Jan Mayen Islands" |
360
|
|
|
|
|
|
|
|
361
|
|
|
|
|
|
|
=back |
362
|
|
|
|
|
|
|
|
363
|
|
|
|
|
|
|
=cut |
364
|
|
|
|
|
|
|
|
365
|
|
|
|
|
|
|
=head2 new |
366
|
|
|
|
|
|
|
|
367
|
|
|
|
|
|
|
new(HashRef $data) (Plugin) |
368
|
|
|
|
|
|
|
|
369
|
|
|
|
|
|
|
The new method returns a new instance of the class. |
370
|
|
|
|
|
|
|
|
371
|
|
|
|
|
|
|
I> |
372
|
|
|
|
|
|
|
|
373
|
|
|
|
|
|
|
=over 4 |
374
|
|
|
|
|
|
|
|
375
|
|
|
|
|
|
|
=item new example 1 |
376
|
|
|
|
|
|
|
|
377
|
|
|
|
|
|
|
package main; |
378
|
|
|
|
|
|
|
|
379
|
|
|
|
|
|
|
use Faker::Plugin::EnUs::AddressCountryName; |
380
|
|
|
|
|
|
|
|
381
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::AddressCountryName->new; |
382
|
|
|
|
|
|
|
|
383
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::AddressCountryName") |
384
|
|
|
|
|
|
|
|
385
|
|
|
|
|
|
|
=back |
386
|
|
|
|
|
|
|
|
387
|
|
|
|
|
|
|
=cut |
388
|
|
|
|
|
|
|
|
389
|
|
|
|
|
|
|
=head1 AUTHORS |
390
|
|
|
|
|
|
|
|
391
|
|
|
|
|
|
|
Awncorp, C |
392
|
|
|
|
|
|
|
|
393
|
|
|
|
|
|
|
=cut |
394
|
|
|
|
|
|
|
|
395
|
|
|
|
|
|
|
=head1 LICENSE |
396
|
|
|
|
|
|
|
|
397
|
|
|
|
|
|
|
Copyright (C) 2000, Al Newkirk. |
398
|
|
|
|
|
|
|
|
399
|
|
|
|
|
|
|
This program is free software, you can redistribute it and/or modify it under |
400
|
|
|
|
|
|
|
the terms of the Apache license version 2.0. |
401
|
|
|
|
|
|
|
|
402
|
|
|
|
|
|
|
=cut |