line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::EsEs::AddressLines; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
21086
|
use 5.018; |
|
1
|
|
|
|
|
3
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
5
|
use Venus::Class 'base'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
8
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::EsEs'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.18'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
3
|
|
|
3
|
1
|
1115
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
3
|
|
|
|
|
15
|
return $self->process_markers( |
22
|
|
|
|
|
|
|
$self->process_format( |
23
|
|
|
|
|
|
|
$self->faker->random->select(data_for_address_lines()), |
24
|
|
|
|
|
|
|
), |
25
|
|
|
|
|
|
|
'newlines', |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub data_for_address_lines { |
30
|
3
|
|
|
3
|
0
|
17
|
state $address_lines = [ |
31
|
|
|
|
|
|
|
'{{address_street_address}}\n{{address_city_name}}, {{address_state_name}} {{address_postal_code}}' |
32
|
|
|
|
|
|
|
] |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 NAME |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Faker::Plugin::EsEs::AddressLines - Address Lines |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=cut |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 ABSTRACT |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Address Lines for Faker |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=cut |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 VERSION |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1.18 |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=cut |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 SYNOPSIS |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
package main; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressLines; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressLines->new; |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressLines") |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 DESCRIPTION |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This package provides methods for generating fake data for address lines. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=encoding utf8 |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=cut |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 INHERITS |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
This package inherits behaviors from: |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
L |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=cut |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 METHODS |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
This package provides the following methods: |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=cut |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head2 execute |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
The execute method returns a returns a random fake address lines. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
I> |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=over 4 |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=item execute example 1 |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
package main; |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressLines; |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressLines->new; |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressLines") |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
# "Praza Rocío, 50, 94º A\nEl Apodaca, Zamora 22037"; |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
# "Paseo Salas, 558, Entre suelo 5º\nLos Blanco del Barco, La Rioja 96220"; |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
# "Praza Nevárez, 12, 8º\nLas Negrón, Valladolid 56907"; |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=back |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=cut |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
=head2 new |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
new(HashRef $data) (Plugin) |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
The new method returns a new instance of the class. |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
I> |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=over 4 |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
=item new example 1 |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
package main; |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressLines; |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressLines->new; |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressLines") |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
=back |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=cut |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=head1 AUTHORS |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
Awncorp, C |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
=cut |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
=head1 LICENSE |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
Copyright (C) 2000, Al Newkirk. |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
This program is free software, you can redistribute it and/or modify it under |
162
|
|
|
|
|
|
|
the terms of the Apache license version 2.0. |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
=cut |