line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::JaJp::AddressPrefecture; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
22958
|
use 5.018; |
|
3
|
|
|
|
|
15
|
|
4
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
20
|
use strict; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
79
|
|
6
|
3
|
|
|
3
|
|
15
|
use warnings; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
115
|
|
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
21
|
use Venus::Class 'base'; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
25
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::JaJp'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.17'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
9
|
|
|
9
|
1
|
1379
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
9
|
|
|
|
|
36
|
return $self->faker->random->select(data_for_address_prefecture()); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub data_for_address_prefecture { |
25
|
9
|
|
|
9
|
0
|
58
|
state $address_prefecture = [ |
26
|
|
|
|
|
|
|
'北海道', |
27
|
|
|
|
|
|
|
'青森県', |
28
|
|
|
|
|
|
|
'岩手県', |
29
|
|
|
|
|
|
|
'宮城県', |
30
|
|
|
|
|
|
|
'秋田県', |
31
|
|
|
|
|
|
|
'山形県', |
32
|
|
|
|
|
|
|
'福島県', |
33
|
|
|
|
|
|
|
'茨城県', |
34
|
|
|
|
|
|
|
'栃木県', |
35
|
|
|
|
|
|
|
'群馬県', |
36
|
|
|
|
|
|
|
'埼玉県', |
37
|
|
|
|
|
|
|
'千葉県', |
38
|
|
|
|
|
|
|
'東京都', |
39
|
|
|
|
|
|
|
'神奈川県', |
40
|
|
|
|
|
|
|
'新潟県', |
41
|
|
|
|
|
|
|
'富山県', |
42
|
|
|
|
|
|
|
'石川県', |
43
|
|
|
|
|
|
|
'福井県', |
44
|
|
|
|
|
|
|
'山梨県', |
45
|
|
|
|
|
|
|
'長野県', |
46
|
|
|
|
|
|
|
'岐阜県', |
47
|
|
|
|
|
|
|
'静岡県', |
48
|
|
|
|
|
|
|
'愛知県', |
49
|
|
|
|
|
|
|
'三重県', |
50
|
|
|
|
|
|
|
'滋賀県', |
51
|
|
|
|
|
|
|
'京都府', |
52
|
|
|
|
|
|
|
'大阪府', |
53
|
|
|
|
|
|
|
'兵庫県', |
54
|
|
|
|
|
|
|
'奈良県', |
55
|
|
|
|
|
|
|
'和歌山県', |
56
|
|
|
|
|
|
|
'鳥取県', |
57
|
|
|
|
|
|
|
'島根県', |
58
|
|
|
|
|
|
|
'岡山県', |
59
|
|
|
|
|
|
|
'広島県', |
60
|
|
|
|
|
|
|
'山口県', |
61
|
|
|
|
|
|
|
'徳島県', |
62
|
|
|
|
|
|
|
'香川県', |
63
|
|
|
|
|
|
|
'愛媛県', |
64
|
|
|
|
|
|
|
'高知県', |
65
|
|
|
|
|
|
|
'福岡県', |
66
|
|
|
|
|
|
|
'佐賀県', |
67
|
|
|
|
|
|
|
'長崎県', |
68
|
|
|
|
|
|
|
'熊本県', |
69
|
|
|
|
|
|
|
'大分県', |
70
|
|
|
|
|
|
|
'宮崎県', |
71
|
|
|
|
|
|
|
'鹿児島県', |
72
|
|
|
|
|
|
|
'沖縄県', |
73
|
|
|
|
|
|
|
] |
74
|
|
|
|
|
|
|
} |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
1; |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head1 NAME |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Faker::Plugin::JaJp::AddressPrefecture - Address Prefecture |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=cut |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 ABSTRACT |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Address Prefecture for Faker |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=cut |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 VERSION |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
1.17 |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=cut |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head1 SYNOPSIS |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
package main; |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::AddressPrefecture; |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::AddressPrefecture->new; |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::AddressPrefecture") |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=cut |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head1 DESCRIPTION |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
This package provides methods for generating fake data for address prefecture. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=encoding utf8 |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=cut |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head1 INHERITS |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
This package inherits behaviors from: |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
L |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=cut |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=head1 METHODS |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
This package provides the following methods: |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=cut |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=head2 execute |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
The execute method returns a returns a random fake address prefecture. |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
I> |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=over 4 |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=item execute example 1 |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
package main; |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::AddressPrefecture; |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::AddressPrefecture->new; |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::AddressPrefecture") |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
# '石川県'; |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
# '長野県'; |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
# '佐賀県'; |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
=back |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
=cut |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=head2 new |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
new(HashRef $data) (Plugin) |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
The new method returns a new instance of the class. |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
I> |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
=over 4 |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
=item new example 1 |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
package main; |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::AddressPrefecture; |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::AddressPrefecture->new; |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::AddressPrefecture") |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
=back |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
=cut |