line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::EnUs::AddressCitySuffix; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
22721
|
use 5.018; |
|
4
|
|
|
|
|
16
|
|
4
|
|
|
|
|
|
|
|
5
|
4
|
|
|
4
|
|
29
|
use strict; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
177
|
|
6
|
4
|
|
|
4
|
|
23
|
use warnings; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
139
|
|
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
22
|
use Venus::Class 'base'; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
40
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::EnUs'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.17'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
14
|
|
|
14
|
1
|
1128
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
14
|
|
|
|
|
60
|
return $self->faker->random->select(data_for_address_city_suffix()); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub data_for_address_city_suffix { |
25
|
14
|
|
|
14
|
0
|
67
|
state $address_city_suffix = [ |
26
|
|
|
|
|
|
|
'town', |
27
|
|
|
|
|
|
|
'ton', |
28
|
|
|
|
|
|
|
'land', |
29
|
|
|
|
|
|
|
'ville', |
30
|
|
|
|
|
|
|
'berg', |
31
|
|
|
|
|
|
|
'burgh', |
32
|
|
|
|
|
|
|
'borough', |
33
|
|
|
|
|
|
|
'bury', |
34
|
|
|
|
|
|
|
'view', |
35
|
|
|
|
|
|
|
'port', |
36
|
|
|
|
|
|
|
'mouth', |
37
|
|
|
|
|
|
|
'stad', |
38
|
|
|
|
|
|
|
'furt', |
39
|
|
|
|
|
|
|
'chester', |
40
|
|
|
|
|
|
|
'mouth', |
41
|
|
|
|
|
|
|
'fort', |
42
|
|
|
|
|
|
|
'haven', |
43
|
|
|
|
|
|
|
'side', |
44
|
|
|
|
|
|
|
'shire', |
45
|
|
|
|
|
|
|
] |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 NAME |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Faker::Plugin::EnUs::AddressCitySuffix - Address City Suffix |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=cut |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 ABSTRACT |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Address City Suffix for Faker |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 VERSION |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
1.17 |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=cut |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 SYNOPSIS |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
package main; |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
use Faker::Plugin::EnUs::AddressCitySuffix; |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::AddressCitySuffix->new; |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::AddressCitySuffix") |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 DESCRIPTION |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
This package provides methods for generating fake data for address city suffix. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=encoding utf8 |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=cut |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 INHERITS |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
This package inherits behaviors from: |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
L |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=cut |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head1 METHODS |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
This package provides the following methods: |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=cut |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head2 execute |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
The execute method returns a returns a random fake address city suffix. |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
I> |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=over 4 |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=item execute example 1 |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
package main; |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
use Faker::Plugin::EnUs::AddressCitySuffix; |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::AddressCitySuffix->new; |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::AddressCitySuffix") |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
# "borough"; |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
# "view"; |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
# "haven"; |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=back |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=cut |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=head2 new |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
new(HashRef $data) (Plugin) |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
The new method returns a new instance of the class. |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
I> |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
=over 4 |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
=item new example 1 |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
package main; |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
use Faker::Plugin::EnUs::AddressCitySuffix; |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EnUs::AddressCitySuffix->new; |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EnUs::AddressCitySuffix") |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
=back |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
=cut |