line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::JaJp::PersonLastName; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
27560
|
use 5.018; |
|
9
|
|
|
|
|
41
|
|
4
|
|
|
|
|
|
|
|
5
|
9
|
|
|
9
|
|
51
|
use strict; |
|
9
|
|
|
|
|
29
|
|
|
9
|
|
|
|
|
189
|
|
6
|
9
|
|
|
9
|
|
46
|
use warnings; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
252
|
|
7
|
|
|
|
|
|
|
|
8
|
9
|
|
|
9
|
|
48
|
use Venus::Class 'base'; |
|
9
|
|
|
|
|
24
|
|
|
9
|
|
|
|
|
57
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::JaJp'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.18'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
43
|
|
|
43
|
1
|
1193
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
43
|
|
|
|
|
151
|
return $self->faker->random->select(data_for_last_name()); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub data_for_last_name { |
25
|
43
|
|
|
43
|
0
|
227
|
state $last_name = [ |
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
|
|
|
|
|
|
|
'渡辺', |
77
|
|
|
|
|
|
|
] |
78
|
|
|
|
|
|
|
} |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
1; |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 NAME |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Faker::Plugin::JaJp::PersonLastName - Person Last Name |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=cut |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 ABSTRACT |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Person Last Name for Faker |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=cut |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 VERSION |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
1.18 |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=cut |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head1 SYNOPSIS |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
package main; |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::PersonLastName; |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::PersonLastName->new; |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::PersonLastName") |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=cut |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head1 DESCRIPTION |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
This package provides methods for generating fake data for person last name. |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=encoding utf8 |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=cut |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head1 INHERITS |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
This package inherits behaviors from: |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
L |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=cut |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=head1 METHODS |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
This package provides the following methods: |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=cut |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head2 execute |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
The execute method returns a returns a random fake person last name. |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
I> |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=over 4 |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
=item execute example 1 |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
package main; |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::PersonLastName; |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::PersonLastName->new; |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::PersonLastName") |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
# '近藤'; |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
# '佐藤'; |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
# '山岸'; |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=back |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
=cut |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=head2 new |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
new(HashRef $data) (Plugin) |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
The new method returns a new instance of the class. |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
I> |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
=over 4 |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
=item new example 1 |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
package main; |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::PersonLastName; |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::PersonLastName->new; |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::PersonLastName") |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
=back |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
=cut |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
=head1 AUTHORS |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
Awncorp, C |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
=cut |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
=head1 LICENSE |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
Copyright (C) 2000, Al Newkirk. |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
This program is free software, you can redistribute it and/or modify it under |
207
|
|
|
|
|
|
|
the terms of the Apache license version 2.0. |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
=cut |