line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Faker::Plugin::JaJp::AddressPostalCode; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
22767
|
use 5.018; |
|
3
|
|
|
|
|
15
|
|
4
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
17
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
66
|
|
6
|
3
|
|
|
3
|
|
17
|
use warnings; |
|
3
|
|
|
|
|
11
|
|
|
3
|
|
|
|
|
81
|
|
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
20
|
use Venus::Class 'base'; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
21
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Faker::Plugin::JaJp'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '1.18'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub execute { |
19
|
9
|
|
|
9
|
1
|
1385
|
my ($self, $data) = @_; |
20
|
|
|
|
|
|
|
|
21
|
9
|
|
|
|
|
34
|
my $random = $self->faker->random; |
22
|
|
|
|
|
|
|
|
23
|
9
|
|
|
|
|
67
|
return $random->range(100, 999) . $random->range(1000, 9999); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 NAME |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Faker::Plugin::JaJp::AddressPostalCode - Address Postal Code |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=cut |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 ABSTRACT |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Address Postal Code for Faker |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 VERSION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1.18 |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SYNOPSIS |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
package main; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::AddressPostalCode; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::AddressPostalCode->new; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::AddressPostalCode") |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=cut |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 DESCRIPTION |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This package provides methods for generating fake data for address postal code. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=encoding utf8 |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=cut |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 INHERITS |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This package inherits behaviors from: |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
L |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=cut |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 METHODS |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
This package provides the following methods: |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 execute |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
execute(HashRef $data) (Str) |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
The execute method returns a returns a random fake address postal code. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
I> |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=over 4 |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=item execute example 1 |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
package main; |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::AddressPostalCode; |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::AddressPostalCode->new; |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::AddressPostalCode") |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
# '4081999'; |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
# '1738707'; |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
# my $result = $plugin->execute; |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
# '5307217'; |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=back |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=cut |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head2 new |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
new(HashRef $data) (Plugin) |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
The new method returns a new instance of the class. |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
I> |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=over 4 |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=item new example 1 |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
package main; |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
use Faker::Plugin::JaJp::AddressPostalCode; |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
my $plugin = Faker::Plugin::JaJp::AddressPostalCode->new; |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
# bless(..., "Faker::Plugin::JaJp::AddressPostalCode") |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=back |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=cut |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=head1 AUTHORS |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
Awncorp, C |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
=cut |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
=head1 LICENSE |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
Copyright (C) 2000, Al Newkirk. |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
This program is free software, you can redistribute it and/or modify it under |
153
|
|
|
|
|
|
|
the terms of the Apache license version 2.0. |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
=cut |