line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::EsEs::AddressLine1; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
20324
|
use 5.018; |
|
1
|
|
|
|
|
5
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
42
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
7
|
use Venus::Class 'base'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::EsEs'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.17'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
3
|
|
|
3
|
1
|
1559
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
3
|
|
|
|
|
16
|
return $self->process_format( |
22
|
|
|
|
|
|
|
$self->faker->random->select(data_for_address_line1()) |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub data_for_address_line1 { |
27
|
3
|
|
|
3
|
0
|
14
|
state $address_line1 = [ |
28
|
|
|
|
|
|
|
'{{address_street_address}}, {{address_postal_code}}, {{address_city_name}}', |
29
|
|
|
|
|
|
|
] |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 NAME |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Faker::Plugin::EsEs::AddressLine1 - Address Line1 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 ABSTRACT |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Address Line1 for Faker |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 VERSION |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
1.17 |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=cut |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 SYNOPSIS |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
package main; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressLine1; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressLine1->new; |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressLine1") |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=cut |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 DESCRIPTION |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This package provides methods for generating fake data for address line1. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=encoding utf8 |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=cut |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 INHERITS |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This package inherits behaviors from: |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
L |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 METHODS |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
This package provides the following methods: |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=cut |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head2 execute |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
The execute method returns a returns a random fake address line1. |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
I> |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=over 4 |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=item execute example 1 |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
package main; |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressLine1; |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressLine1->new; |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressLine1") |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
# 'Praza Rocío, 50, 94º A, 44390, Cornejo del Penedès'; |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
# 'Plaça Pilar, 558, Entre suelo 5º, 23411, La Vargas'; |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
# 'Camino Pedro, 15, 9º, 87686, As Mayorga'; |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=back |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=cut |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=head2 new |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
new(HashRef $data) (Plugin) |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
The new method returns a new instance of the class. |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
I> |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=over 4 |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=item new example 1 |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
package main; |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
use Faker::Plugin::EsEs::AddressLine1; |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::EsEs::AddressLine1->new; |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::EsEs::AddressLine1") |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=back |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
=cut |