line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::EsEs::AddressLine2; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
41247
|
use 5.018; |
|
4
|
|
|
|
|
16
|
|
4
|
|
|
|
|
|
|
|
5
|
4
|
|
|
4
|
|
26
|
use strict; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
114
|
|
6
|
4
|
|
|
4
|
|
22
|
use warnings; |
|
4
|
|
|
|
|
27
|
|
|
4
|
|
|
|
|
119
|
|
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
20
|
use Venus::Class 'base'; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
25
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::EsEs'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.19'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
12
|
|
|
12
|
1
|
1410
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
12
|
|
|
|
|
47
|
return $self->process_markers( |
22
|
|
|
|
|
|
|
$self->faker->random->select(data_for_address_line2()), |
23
|
|
|
|
|
|
|
'numbers', |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub data_for_address_line2 { |
28
|
12
|
|
|
12
|
0
|
67
|
state $address_line2 = [ |
29
|
|
|
|
|
|
|
'Bajos', |
30
|
|
|
|
|
|
|
'Ático #º', |
31
|
|
|
|
|
|
|
'Entre suelo #º', |
32
|
|
|
|
|
|
|
'Bajo #º', |
33
|
|
|
|
|
|
|
'#º', |
34
|
|
|
|
|
|
|
'#º A', |
35
|
|
|
|
|
|
|
'#º B', |
36
|
|
|
|
|
|
|
'#º C', |
37
|
|
|
|
|
|
|
'#º D', |
38
|
|
|
|
|
|
|
'#º E', |
39
|
|
|
|
|
|
|
'#º F', |
40
|
|
|
|
|
|
|
'##º A', |
41
|
|
|
|
|
|
|
'##º B', |
42
|
|
|
|
|
|
|
'##º C', |
43
|
|
|
|
|
|
|
'##º D', |
44
|
|
|
|
|
|
|
'##º E', |
45
|
|
|
|
|
|
|
'##º F', |
46
|
|
|
|
|
|
|
'#º #º', |
47
|
|
|
|
|
|
|
'##º #º', |
48
|
|
|
|
|
|
|
] |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 NAME |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Faker::Plugin::EsEs::AddressLine2 - Address Line2 |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 ABSTRACT |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Address Line2 for Faker |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=cut |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 VERSION |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
1.19 |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 SYNOPSIS |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
package main; |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressLine2; |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressLine2->new; |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressLine2") |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=cut |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 DESCRIPTION |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
This package provides methods for generating fake data for address line2. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=encoding utf8 |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=cut |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 INHERITS |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
This package inherits behaviors from: |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
L |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=cut |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head1 METHODS |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
This package provides the following methods: |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=cut |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=head2 execute |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
The execute method returns a returns a random fake address line2. |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
I> |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=over 4 |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=item execute example 1 |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
package main; |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressLine2; |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressLine2->new; |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressLine2") |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
# '1º B'; |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
# 'Ático 8º'; |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
# '6º E'; |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
=back |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
=cut |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
=head2 new |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
new(HashRef $data) (Plugin) |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
The new method returns a new instance of the class. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
I> |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=over 4 |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=item new example 1 |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
package main; |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressLine2; |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressLine2->new; |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressLine2") |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
=back |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
=cut |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
=head1 AUTHORS |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
Awncorp, C |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
=cut |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
=head1 LICENSE |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
Copyright (C) 2000, Al Newkirk. |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
This program is free software, you can redistribute it and/or modify it under |
178
|
|
|
|
|
|
|
the terms of the Apache license version 2.0. |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
=cut |