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