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