line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::EsEs::PersonName; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
39759
|
use 5.018; |
|
2
|
|
|
|
|
11
|
|
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
14
|
use strict; |
|
2
|
|
|
|
|
29
|
|
|
2
|
|
|
|
|
67
|
|
6
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
63
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
11
|
use Venus::Class 'base'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
13
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::EsEs'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.19'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
4
|
|
|
4
|
1
|
1117
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
4
|
|
|
|
|
13
|
return $self->process_format($self->faker->random->select(format_for_name())); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub format_for_name { |
25
|
4
|
|
|
4
|
0
|
29
|
state $name = [ |
26
|
|
|
|
|
|
|
map([ |
27
|
|
|
|
|
|
|
'{{person_first_name}}', |
28
|
|
|
|
|
|
|
'{{person_last_name}}', |
29
|
|
|
|
|
|
|
], 1..3), |
30
|
|
|
|
|
|
|
[ |
31
|
|
|
|
|
|
|
'{{person_first_name}}', |
32
|
|
|
|
|
|
|
'{{person_first_name}}', |
33
|
|
|
|
|
|
|
'{{person_last_name}}', |
34
|
|
|
|
|
|
|
], |
35
|
|
|
|
|
|
|
[ |
36
|
|
|
|
|
|
|
'{{person_first_name}}', |
37
|
|
|
|
|
|
|
'{{person_last_name}}', |
38
|
|
|
|
|
|
|
'{{person_last_name}}', |
39
|
|
|
|
|
|
|
], |
40
|
|
|
|
|
|
|
[ |
41
|
|
|
|
|
|
|
'{{person_first_name}}', |
42
|
|
|
|
|
|
|
'{{person_first_name}}', |
43
|
|
|
|
|
|
|
'{{person_last_name}}', |
44
|
|
|
|
|
|
|
], |
45
|
|
|
|
|
|
|
] |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 NAME |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Faker::Plugin::EsEs::PersonName - Person Name |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=cut |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 ABSTRACT |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Person Name for Faker |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 VERSION |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
1.19 |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=cut |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 SYNOPSIS |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
package main; |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::PersonName; |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::PersonName->new; |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::PersonName") |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 DESCRIPTION |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
This package provides methods for generating fake data for person name. |
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 person name. |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
I> |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=over 4 |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=item execute example 1 |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
package main; |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::PersonName; |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::PersonName->new; |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::PersonName") |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
# 'Rafael Loera'; |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
# 'Aina Lorena Lugo'; |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
# 'Victoria Cornejo'; |
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::EsEs::PersonName; |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::PersonName->new; |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::PersonName") |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
=back |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
=cut |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
=head1 AUTHORS |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
Awncorp, C |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=cut |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
=head1 LICENSE |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
Copyright (C) 2000, Al Newkirk. |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
This program is free software, you can redistribute it and/or modify it under |
175
|
|
|
|
|
|
|
the terms of the Apache license version 2.0. |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
=cut |