line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::JaJp::PersonFirstName; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
21385
|
use 5.018; |
|
2
|
|
|
|
|
8
|
|
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
41
|
|
6
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
57
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
10
|
use Venus::Class 'base'; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
21
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::JaJp'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.17'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
6
|
|
|
6
|
1
|
1425
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
6
|
100
|
|
|
|
22
|
return (lc($self->faker->person_gender) eq 'male') |
22
|
|
|
|
|
|
|
? $self->faker->random->select(data_for_first_name_male()) |
23
|
|
|
|
|
|
|
: $self->faker->random->select(data_for_first_name_female()); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub data_for_first_name_male { |
27
|
4
|
|
|
4
|
0
|
31
|
state $first_name = [ |
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
|
|
|
|
|
|
|
sub data_for_first_name_female { |
62
|
2
|
|
|
2
|
0
|
10
|
state $first_name = [ |
63
|
|
|
|
|
|
|
'明美', |
64
|
|
|
|
|
|
|
'あすか', |
65
|
|
|
|
|
|
|
'香織', |
66
|
|
|
|
|
|
|
'加奈', |
67
|
|
|
|
|
|
|
'くみ子', |
68
|
|
|
|
|
|
|
'さゆり', |
69
|
|
|
|
|
|
|
'知実', |
70
|
|
|
|
|
|
|
'千代', |
71
|
|
|
|
|
|
|
'直子', |
72
|
|
|
|
|
|
|
'七夏', |
73
|
|
|
|
|
|
|
'花子', |
74
|
|
|
|
|
|
|
'春香', |
75
|
|
|
|
|
|
|
'真綾', |
76
|
|
|
|
|
|
|
'舞', |
77
|
|
|
|
|
|
|
'美加子', |
78
|
|
|
|
|
|
|
'幹', |
79
|
|
|
|
|
|
|
'桃子', |
80
|
|
|
|
|
|
|
'結衣', |
81
|
|
|
|
|
|
|
'裕美子', |
82
|
|
|
|
|
|
|
'陽子', |
83
|
|
|
|
|
|
|
'里佳', |
84
|
|
|
|
|
|
|
] |
85
|
|
|
|
|
|
|
} |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
1; |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head1 NAME |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Faker::Plugin::JaJp::PersonFirstName - Person First Name |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=cut |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head1 ABSTRACT |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Person First Name for Faker |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=cut |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head1 VERSION |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
1.17 |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=cut |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head1 SYNOPSIS |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
package main; |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::PersonFirstName; |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::PersonFirstName->new; |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::PersonFirstName") |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=cut |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=head1 DESCRIPTION |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
This package provides methods for generating fake data for person first name. |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=encoding utf8 |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
=cut |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=head1 INHERITS |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
This package inherits behaviors from: |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
L |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=cut |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
=head1 METHODS |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
This package provides the following methods: |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
=cut |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
=head2 execute |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
The execute method returns a returns a random fake person first name. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
I> |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=over 4 |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=item execute example 1 |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
package main; |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::PersonFirstName; |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::PersonFirstName->new; |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::PersonFirstName") |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
# '拓真'; |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
# '智也'; |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
# '英樹'; |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=back |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
=cut |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
=head2 new |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
new(HashRef $data) (Plugin) |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
The new method returns a new instance of the class. |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
I> |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
=over 4 |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
=item new example 1 |
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
package main; |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::PersonFirstName; |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::PersonFirstName->new; |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::PersonFirstName") |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
=back |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
=cut |