Faker/Plugin/EsEs/AddressLine2.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 50.0% 1 / 2 totaltotal 96.0% 24 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Faker/Plugin/EsEs/AddressLine1.pm ↑ Summary Faker/Plugin/EsEs/AddressLines.pm »
1 package Faker::Plugin::EsEs::AddressLine2;
2  
3 4 ▶use 5.018;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 4 ▶use Venus::Class 'base';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 4 base 'Faker::Plugin::EsEs';
11  
12 # VERSION
13  
14 4 our $VERSION = '1.19';
15  
16 # METHODS
17  
18 12 ▶sub execute {
Subroutine execute: called CC=1 SCAR=0.0
Pod documented
19 12 my ($self, $data) = @_;
20  
21 12 return $self->process_markers(
22 $self->faker->random->select(data_for_address_line2()),
23 'numbers',
24 );
25 }
26  
27 12 ▶sub data_for_address_line2 {
Subroutine data_for_address_line2: called CC=1 SCAR=0.0
Pod undocumented
28 12 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 4 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<Faker::Plugin::EsEs>
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<Since C<1.10>>
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<Since C<1.10>>
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<awncorp@cpan.org>
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
« Faker/Plugin/EsEs/AddressLine1.pm ↑ Summary Faker/Plugin/EsEs/AddressLines.pm »