Faker/Plugin/EsEs/AddressCityName.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/EnUs/TelephoneNumber.pm ↑ Summary Faker/Plugin/EsEs/AddressCityPrefix.pm »
1 package Faker::Plugin::EsEs::AddressCityName;
2  
3 3 ▶use 5.018;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 ▶use Venus::Class 'base';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 base 'Faker::Plugin::EsEs';
11  
12 # VERSION
13  
14 3 our $VERSION = '1.19';
15  
16 # METHODS
17  
18 9 ▶sub execute {
Subroutine execute: called CC=1 SCAR=0.0
Pod documented
19 9 my ($self, $data) = @_;
20  
21 9 return $self->process_format(
22 $self->faker->random->select(data_for_address_city_name())
23 );
24 }
25  
26 9 ▶sub data_for_address_city_name {
Subroutine data_for_address_city_name: called CC=1 SCAR=0.0
Pod undocumented
27 9 state $address_city_name = [
28 '{{address_city_prefix}} {{person_last_name}} {{address_city_suffix}}',
29 '{{address_city_prefix}} {{person_last_name}}',
30 '{{person_last_name}} {{address_city_suffix}}',
31 ]
32 }
33  
34 3 1;
35  
36  
37  
38 =head1 NAME
39  
40 Faker::Plugin::EsEs::AddressCityName - Address City Name
41  
42 =cut
43  
44 =head1 ABSTRACT
45  
46 Address City Name for Faker
47  
48 =cut
49  
50 =head1 VERSION
51  
52 1.19
53  
54 =cut
55  
56 =head1 SYNOPSIS
57  
58 package main;
59  
60 use Faker::Plugin::EsEs::AddressCityName;
61  
62 my $plugin = Faker::Plugin::EsEs::AddressCityName->new;
63  
64 # bless(..., "Faker::Plugin::EsEs::AddressCityName")
65  
66 =cut
67  
68 =head1 DESCRIPTION
69  
70 This package provides methods for generating fake data for address city name.
71  
72 =encoding utf8
73  
74 =cut
75  
76 =head1 INHERITS
77  
78 This package inherits behaviors from:
79  
80 L<Faker::Plugin::EsEs>
81  
82 =cut
83  
84 =head1 METHODS
85  
86 This package provides the following methods:
87  
88 =cut
89  
90 =head2 execute
91  
92 execute(HashRef $data) (Str)
93  
94 The execute method returns a returns a random fake address city name.
95  
96 I<Since C<1.10>>
97  
98 =over 4
99  
100 =item execute example 1
101  
102 package main;
103  
104 use Faker::Plugin::EsEs::AddressCityName;
105  
106 my $plugin = Faker::Plugin::EsEs::AddressCityName->new;
107  
108 # bless(..., "Faker::Plugin::EsEs::AddressCityName")
109  
110 # my $result = $plugin->execute;
111  
112 # 'Los Serrato';
113  
114 # my $result = $plugin->execute;
115  
116 # 'Os MontaƱo';
117  
118 # my $result = $plugin->execute;
119  
120 # 'Las Lozano de la Sierra';
121  
122 =back
123  
124 =cut
125  
126 =head2 new
127  
128 new(HashRef $data) (Plugin)
129  
130 The new method returns a new instance of the class.
131  
132 I<Since C<1.10>>
133  
134 =over 4
135  
136 =item new example 1
137  
138 package main;
139  
140 use Faker::Plugin::EsEs::AddressCityName;
141  
142 my $plugin = Faker::Plugin::EsEs::AddressCityName->new;
143  
144 # bless(..., "Faker::Plugin::EsEs::AddressCityName")
145  
146 =back
147  
148 =cut
149  
150 =head1 AUTHORS
151  
152 Awncorp, C<awncorp@cpan.org>
153  
154 =cut
155  
156 =head1 LICENSE
157  
158 Copyright (C) 2000, Al Newkirk.
159  
160 This program is free software, you can redistribute it and/or modify it under
161 the terms of the Apache license version 2.0.
162  
163 =cut
« Faker/Plugin/EnUs/TelephoneNumber.pm ↑ Summary Faker/Plugin/EsEs/AddressCityPrefix.pm »